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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

telegram_logger-0.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file telegram_logger-0.0.1.tar.gz.

File metadata

  • Download URL: telegram_logger-0.0.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.0

File hashes

Hashes for telegram_logger-0.0.1.tar.gz
Algorithm Hash digest
SHA256 59cc9c2671dcd115cad8d99c104b055ab991434d4d07879f2960fa07056bd833
MD5 cc33b8f08b20e9ac463e741cc8b6b504
BLAKE2b-256 64cbe764d91fae5a33fd4509c2db65543ecab0a165a58e4380d4a9cb30ce34c4

See more details on using hashes here.

File details

Details for the file telegram_logger-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: telegram_logger-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.0

File hashes

Hashes for telegram_logger-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0caaca0c94584fc838cd2fdaf701f2625dd77d8bd97032aeaf424b4d4dca48f1
MD5 83f0369ef02379a3746c167f12db2f35
BLAKE2b-256 6da9b956faf44520e03bdc627d06cef3d78edea3b0a68d3fa8a7fc1281664634

See more details on using hashes here.

Supported by

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