Package allowing to log directly to Telegram
Project description
Telegram Logger package
This is a simple package, giving you an ability to log directly to Telegram bot @adv_logger_bot
Simple example
First of all, you need to register your project in the @adv_logger_bot.
You will get random Token.
In your program, you have to create something like this:
from telegram_logger import TelegramLogger
logger = logging.getLogger(__name__)
f = TelegramLogger(bot_url="<BOT URL>", token="<YOUR TOKEN>>")
logger.addFilter(f)
Then on every logger.info()
, logger.warning()
or logger.error()
you will get message from bot
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
telegram_logger-0.0.1.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for telegram_logger-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0caaca0c94584fc838cd2fdaf701f2625dd77d8bd97032aeaf424b4d4dca48f1 |
|
MD5 | 83f0369ef02379a3746c167f12db2f35 |
|
BLAKE2b-256 | 6da9b956faf44520e03bdc627d06cef3d78edea3b0a68d3fa8a7fc1281664634 |