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 hashes)

Uploaded Source

Built Distribution

aio_telegram_log_handler-1.0.1-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

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