Skip to main content
Python-Errordite
================

This app provides integration between Python and Errordite, a centralised
error logging and management service, not unlike Sentry, but with a more
functionality around the classification and management of errors.

The application is provided in the form of a standard Python logging handler.
In order to log exceptions with Errorite, you simply use ``logging.error`` or
``logging.exception`` in your *except* block:

>>> import logging
>>> import errordite
>>> logger = logging.getLogger(\_\_name\_\_)
>>> logger.addHandler(errordite.ErrorditeHandler('token'))
>>> try:
... raise Exception()
... except:
... logging.error("Something went wrong")
>>>

Details of the implementation are best found in the code itself - it's fairly
self-explanatory.

Configuration
-------------

In order to set up a valid ErrorditeHandler you must pass in an Errordite API
token, which you can get by signing up at www.errordite.com

Installation
------------

The library is available at pypi as 'python-errordite', and can therefore be
installed using pip:

$ pip install python-errordite

Once installed you can import the handler:

>>> import errordite
>>> handler = errordite.ErrorditeHandler("your_errordite_token")

Tests
-----

There are tests in the package - they can be run using unittest:

$ python -m unittest errordite.tests

NB These tests do log real exceptions over the wire, so you will need to be
connected to the web to run them. You will also need to set a local environment
variable (ERRORDITE_TOKEN), which is picked up in the test suite. This is a
technique used to prevent having to have sensitive information in the public
repo.

If you are *nix you can pass this in on the command line:

$ ERRORDITE_TOKEN=123 python -m unittest erroridite.tests

If you are on Windows you'll need to set it up:

c:\> set ERRORDITE_TOKEN=123
c:\> python -m unittest erroridite.tests

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

errordite-0.2.zip (10.6 kB view details)

Uploaded Source

File details

Details for the file errordite-0.2.zip.

File metadata

  • Download URL: errordite-0.2.zip
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for errordite-0.2.zip
Algorithm Hash digest
SHA256 7a4600dd4f99a480a8df555e5878f4d7b51536857ff81327814693bede2768b6
MD5 ac71a28dcd7e8e119f9ae3ca65bd0942
BLAKE2b-256 c9d569b06f8c50d6e7fbd66ac3cb914b34f2c0181b3c4c7d30938e4c0cfd1137

See more details on using hashes here.

Release history Release notifications | RSS feed

0.5.1

1 file

0.5

1 file

0.4

1 file

0.3

1 file

0.2.2

1 file

0.2.1

1 file

This release

0.2 This release

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page