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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aio_telegram_log_handler-1.0.1.tar.gz.
File metadata
- Download URL: aio_telegram_log_handler-1.0.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc965c00eb2e466aff8c989c6745597d0d082e6b4793de780bfe59a3c56140ed
|
|
| MD5 |
9a38e62dec02207322e285f9cc5ea97c
|
|
| BLAKE2b-256 |
fc7167fe8926d2dc29eeb5650c55516e015df9a2f5356ce2b69265902430af34
|
File details
Details for the file aio_telegram_log_handler-1.0.1-py3-none-any.whl.
File metadata
- Download URL: aio_telegram_log_handler-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f615f7101c7739559e0c539a54bae35df7bde6317cb49084db89d6e6317169b8
|
|
| MD5 |
32958a85c7881643d8fb3e3346259a68
|
|
| BLAKE2b-256 |
8d407df0062622c8a14c40ebeb6710dc8f6f15572e3a8d65c37d046c63612093
|