Introducing django-peavy
Continuing my apparent obsession with logging, I've just released django-peavy. It's a collection of logging support code for capturing your Django application logging to a database, and a (really) basic user interface for reviewing it. Notable features include:
- Middleware to tag each request with a unique ID.
- Logging filters to capture request metadata like user, remote IP, and headers.
- Logging handlers for:
- Capturing exception information, including a copy of the Django server error page, in a database.
- Sending error notifications to admins without revealing sensitive information like the contents of request.POST.
- A database router for sending log records to a separate database (though there are problems with South migrations you'll need to work around to do so).
- A simple user interface for browsing log records in the database.
It's available on PyPI, so you can install it with pip. It does require South and Django 1.3; pip should install them automatically if needed.
It's also on GitHub. Both locations include documentation on installation and configuration.
Finally, a screenshot of the current UI (did I mention it's pretty barebones at the moment?):

previous: Better spam defense for Django comments
Comments (4)
leave a comment