Skip to main content

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


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)

Uploaded Source

Built Distribution

telegram_logger-0.0.1-py3-none-any.whl (3.0 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