12

May

Filed in Code, Django |

The question came up today, if there was a database logging solution available for Django. It turned out (to my knowledge) there wasn’t. So I quickly came up with django-db-log. It’s a simply middleware which will catch exceptions in Django, and log them to the database, allowing you to easily view them via the admin or your own custom application.

7 Responses to "django-db-log"

Subscribe to this topic with RSS or get the Trackback URL
kevin (May 12th):

you’re the man Dan … you turned my question into a functioning solution around in about 20 mins (probably less). awesome.

robert (May 12th):

Hello!!!

I supose you already know django-logging:

http://code.google.com/p/django-logging/wiki/Overview

I think is a different purpose application, but this could do the job, and in some situations is even better to write objects to the filesystem than the database.

r.

David (May 12th):

Ya that’s a different purpose, but also seems useful :)

(I don’t actually plan to use DB logging, I simply built this on request)

robert (May 12th):

Hey David!

I saw it later … seems incredibly smart, and fast !!!

r.

Andreas (May 12th):

“The question came up today”

Haha, that question comes up EVERYDAY on the irc channel

sean (May 13th):

it seems quite useful, thanks

Beshr (May 14th):

Cool!
practical and simple + smart :)
Thank you

Leave A Reply

 Username (*required)

 Email Address (*private)

 Website (*optional)

Note: Comments moderation may be active so there is no need to resubmit your comment.