Python logging library with support for multiple destinations
Project description
loghandler
loghandler allows you to easily log messages to multiple endpoints.
Using
Install loghandler via pip
pip install loghandler
In your code import LogHandler and initalize it.
from loghandler import LogHandler
logger = LogHandler({
"log_level": "DEBUG",
"outputs": [
{
"type": "STDOUT"
}
]
})
You can now log messages to all your outputs via:
logger.log('fatal', Exception("Something went HORRIBLY wrong"))
Supported endpoints
- STDOUT
Coming soon
- elasticsearch
- database (MySQL, PostgreSQL, SQLite, ...)
- logstash
- sentry
And probably more.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
loghandler-0.1.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for loghandler-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af70ad557743f7625ad38ac2e50d88a012fb690603bc41cc9df5c87fb1db340e |
|
MD5 | 6d20c102b9296e5ec45c050747190e31 |
|
BLAKE2b-256 | d5f9a16d0771dad7d9954425d7e941bcf7af737d33c05e899b239e921366a09f |