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.

  • Beshr
    Cool!
    practical and simple + smart :)
    Thank you
  • it seems quite useful, thanks
  • Andreas
    "The question came up today"

    Haha, that question comes up EVERYDAY on the irc channel
  • robert
    Hey David!

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

    r.
  • 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
    Hello!!!

    I supose you already know django-logging:

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

    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.
  • you're the man Dan ... you turned my question into a functioning solution around in about 20 mins (probably less). awesome.
blog comments powered by Disqus