Package for send some important logs directly to telegram
Project description
Aio-telegram-log
Basic library for sending log to telegram, using python logging module(like handler), but do it asynchronously.
Usage
Just set telegram handler in your logging settings
...
"handlers": {
"default": {
"formatter": "default",
"level": "DEBUG",
"class": "logging.StreamHandler",
"stream": "ext://sys.stdout",
},
"telegram": {
"class": "tghandler.handler.TelegramLoggingHandler",
"token": "input your token",
"chat_ids": [0, 1],
"level": "ERROR",
"formatter": "default",
},
},
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aio_telegram_log_handler-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33d20047d4548162dd79f1a4c44124857b280a71326c60c34f2dca0e2f7fd594 |
|
MD5 | 21903c114583020d8b0308de565c65e8 |
|
BLAKE2b-256 | de023a51c2a9b9e17cfa9f20931c885d1afa7353eaa627f16f99424abb8273af |
Close
Hashes for aio_telegram_log_handler-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e99a533a66a2929bae4b703cddb09cb5ecfa0bda10b8009b56fe986cb13c87e6 |
|
MD5 | 3442c240e18d07898f328832f84ce856 |
|
BLAKE2b-256 | cd65deb52932f03368f9910c2a7a1a54f001c2b0d82a33e011a10e786af94521 |