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
- Host: GitHub
- URL: https://github.com/danmichaelo/eximhandler
- Owner: danmichaelo
- License: unlicense
- Created: 2014-07-30T01:43:05.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2019-03-24T17:06:47.000Z (over 7 years ago)
- Last Synced: 2025-08-15T04:01:07.322Z (11 months ago)
- Topics: logging, python
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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)
```