[SOLVED] Outputting JSON in Django logs (98% of the way there!)

2012-03-08 Thread Shawn Milochik
It turns out I was just missing quotes around the () for the custom formatter. I just wrote a blog post will a full working example in case anyone else is interested. http://shawnmilo.blogspot.com/2012/03/using-json-logging-in-django-and-python.html -- You received this message because you a

Outputting JSON in Django logs (98% of the way there!)

2012-03-08 Thread Shawn Milochik
Hi everyone. I'm hoping someone has gotten this working and can point out whatever tiny thing I'm doing wrong here. I want to log JSON instead of the default. I found JsonFormatter here: https://github.com/madzak/python-json-logger It works great with a small script I created based on the exa