Skip to main content

DJANGO TELEGRAM LOGGING

This APP was developed on django to provide a simple way of sending error reports of django server via telegram bot API

Table of Contents

Instalation:

To instalate the appp just execute

# this command will install the app
$ pip install django-telegram-logging

Configuration:

Add django_telegram_logging to your installed apps.

INSTALLED_APPS = [
    ...
    'django_telegram_logging'
]

Add to your settings.py file the following variables needed. Is important to add this varaibles to your settings.py file before your logging settings. To get your personal token from Telegram read their documentation. By default TELEGRAM_LOGGING_EMIT_ON_DEBUG is set to false, but if you are running your project on DEBUG mode which you shouldn't, you can set this variable to True to emit the log.

TELEGRAM_LOGGING_TOKEN = 'XXXXXXX:XXXXXXXXXXXXXXXXX'
TELEGRAM_LOGGING_CHAT = 12345678
TELEGRAM_LOGGING_EMIT_ON_DEBUG = True

Follow django's documentation to configure logging, add the telegram handler to the handlers configuration, and add at least one logger which will use that handler.

LOGGING = {
    ...
    'handlers': {
        ...
        'telegram': {
            'level': 'ERROR',
            'class': 'django_telegram_logging.handler.TelegramHandler'
        },
    },
    'loggers': {
        ...
        'django': {
            'level': 'ERROR', 
            'handlers': ['console', 'telegram']
        }
    }
}

Metadata

Release files for django-telegram-logging 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for django-telegram-logging 1.0.2
File Interpreter ABI Platform Actions
django_telegram_logging-1.0.2-py3-none-any.whl Python 3 none any Details for django_telegram_logging-1.0.2-py3-none-any.whl

Release files / django_telegram_logging-1.0.2-py3-none-any.whl

Download URL django_telegram_logging-1.0.2-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f348234252ca605172dbd90dd72067640bbf73aa7b98183cd520929c0fc1bcb
BLAKE2b-256 checksum
How to use checksums
a789a89abcd6bbe607a019fb51acb0f89268782045adb2c168a840dcc9b5b529
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.5

Security for django-telegram-logging 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page