An open API service indexing awesome lists of open source software.

https://github.com/danmichaelo/eximhandler

Python logging handler that sends email using exim
https://github.com/danmichaelo/eximhandler

logging python

Last synced: 11 months ago
JSON representation

Python logging handler that sends email using exim

Awesome Lists containing this project

README

          

# eximhandler

A simple logging handler class which sends an email using exim.

Available on PyPI for install:

pip install eximhandler

## Usage

```python
import logging
from eximhandler import EximHandler

exim_handler = EximHandler('me@mydomain.com', 'Hello world')
exim_handler.setLevel(logging.ERROR)

logger = logging.getLogger()
logger.addHandler(exim_handler)
```