bunnylogs
Python logging handler for BunnyLogs — ship your logs to a live stream with three lines of code.
Install
pip install bunnylogs
Usage
import logging
from bunnylogs import BunnyLogsHandler
logging.getLogger().addHandler(BunnyLogsHandler("your-uuid-here"))
That's it. Every log record at WARNING and above (or whatever level your root logger is set to) will appear in your BunnyLogs stream in real time.
Capture a specific logger
import logging
from bunnylogs import BunnyLogsHandler
handler = BunnyLogsHandler("your-uuid-here")
handler.setLevel(logging.DEBUG)
logger = logging.getLogger("myapp")
logger.addHandler(handler)
logger.setLevel(logging.DEBUG)
Django — settings.py
LOGGING = {
"version": 1,
"handlers": {
"bunnylogs": {
"class": "bunnylogs.BunnyLogsHandler",
"uuid": "your-uuid-here",
},
},
"root": {
"handlers": ["bunnylogs"],
"level": "WARNING",
},
}
Self-hosted deployments
BunnyLogsHandler("your-uuid-here", endpoint="https://your-own-host.com")
How it works
Log records are placed on an in-process queue and flushed by a daemon thread, so emit() is non-blocking (~microseconds on the calling thread). The background thread sends one HTTPS POST per record using only the Python standard library — no external dependencies.
On process exit the daemon thread is killed. Call handler.close() explicitly if you need to guarantee all queued records are flushed before shutdown.
Parameters
| Parameter | Default | Description |
|---|---|---|
uuid |
— | Your logspace UUID |
level |
logging.NOTSET |
Minimum level to forward |
endpoint |
https://bunnylogs.com |
Base URL (override for self-hosted) |
timeout |
5 |
HTTP request timeout in seconds |
License
MIT
Metadata
Release files for bunnylogs 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bunnylogs-0.1.7.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bunnylogs-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.8 kB
Release files / bunnylogs-0.1.7.tar.gz
| Download URL | bunnylogs-0.1.7.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44ab949be586c31a239b5764f4031733586bad828483249a1b02e44be19fc49d
|
|
BLAKE2b-256 checksum How to use checksums |
b4524162d2171c512421f1026f73e1605cdcc82a79843b7a1ea2782d508f3232
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logRelease files / bunnylogs-0.1.7-py3-none-any.whl
| Download URL | bunnylogs-0.1.7-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd4f304bfecd30eee9d3d253eaf50185fe0ed8968a4b6ff1c753f7fdb0d50b69
|
|
BLAKE2b-256 checksum How to use checksums |
4cfe0312a3e945c140bc6cbb7fd7ef084bf84ebf390b837b53304a8e087d3400
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency log