Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aio_telegram_log_handler-1.0.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file aio_telegram_log_handler-1.0.1.tar.gz.

File metadata

File hashes

Hashes for aio_telegram_log_handler-1.0.1.tar.gz
Algorithm Hash digest
SHA256 bc965c00eb2e466aff8c989c6745597d0d082e6b4793de780bfe59a3c56140ed
MD5 9a38e62dec02207322e285f9cc5ea97c
BLAKE2b-256 fc7167fe8926d2dc29eeb5650c55516e015df9a2f5356ce2b69265902430af34

See more details on using hashes here.

File details

Details for the file aio_telegram_log_handler-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aio_telegram_log_handler-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f615f7101c7739559e0c539a54bae35df7bde6317cb49084db89d6e6317169b8
MD5 32958a85c7881643d8fb3e3346259a68
BLAKE2b-256 8d407df0062622c8a14c40ebeb6710dc8f6f15572e3a8d65c37d046c63612093

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page