Skip to main content

Logging utility for Django

Project description

Django logging handlers

Django logging handlers is a collection of handlers for logging messages to various services, such as Telegram, Slack, Discord, and more.

Static Badge Static Badge

Quick start

  1. Install via pip
pip install django-logging-handlers
  1. Add django-logging-handlers to your INSTALLED_APPS setting like this
INSTALLED_APPS = [
    ...
    'django_logging_handlers',
]
  1. Register Logging
LOGGING = {
    ...
    "handlers": {
        ...
        "telegram": {
            "level": "ERROR",
            "class": "django_logging_handlers.handlers.TelegramHandler",
            "token": "<telegram bot token>",
            "chat": "<chat id>",
            "message": "",             # optional: if you want to add a message together
                                       #           with the traceback
            "file_name": PROJECT_NAME, # optional: if you want to edit the file name,
                                       #           defaults to "traceback.html"
        },
    },
    "loggers": {
        "django.request": {
            "handlers": [..., "telegram"],
            "level": "ERROR",
            "propagate": True,
        },
    },
}

Live Features

  • Telegram

Planned features

  • Slack
  • Discord

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

django_logging_handlers-0.1.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

django_logging_handlers-0.1.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file django_logging_handlers-0.1.2.tar.gz.

File metadata

  • Download URL: django_logging_handlers-0.1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.1 Linux/6.5.0-1015-azure

File hashes

Hashes for django_logging_handlers-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0bf9f5b8e8eb817c5dfdbc657c92bce1c67242defae9038c93fefdaed95d36e6
MD5 779c41fcbbd07d4876a239154614fe5a
BLAKE2b-256 c633dbfed169a7a060ab0bc17deb5a6876510e4235a091adf8caf55aa98dad09

See more details on using hashes here.

File details

Details for the file django_logging_handlers-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_logging_handlers-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d5c4e9a0b4ae9be2eb12fd859aca28582aab8f82c530bb205574d05debbcb233
MD5 a78f3403561080d72849e0bd1ba14381
BLAKE2b-256 ff3f84dfdbb4f7c869088dfa4c79aa32688f013769dbd24e4aa5f629721fdb3e

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