Django Integration

Route Django's logging to BunnyLogs with a few lines in settings.py — no extra code in your views or models.

Installation
pip install bunnylogs
Configuration

Add the handler to your LOGGING setting in settings.py:

LOGGING = {
    "version": 1,
    "disable_existing_loggers": False,
    "handlers": {
        "bunnylogs": {
            "class": "bunnylogs.BunnyLogsHandler",
            "uuid": "<uuid>",
            "level": "WARNING",
        },
    },
    "root": {
        "handlers": ["bunnylogs"],
        "level": "WARNING",
    },
}

This forwards all root-level WARNING and above log records — including Django's own request errors, database errors, and anything your app logs — to your BunnyLogs stream.

Notes
  • The handler runs in a background thread so it never blocks the request/response cycle.
  • To restrict forwarding to a specific logger (e.g. only your app), add a loggers key instead of using root.
  • See the Python page for the full list of constructor parameters.