Re: Weird behaviour in Django logging (Django 1.3 RC)

2011-03-09 Thread Edwin
I've had help from SO: http://stackoverflow.com/questions/5249265/strange-behaviour-in-django-logging-django-1-3-rc/5250829#5250829 The solution is simply to explicitly call self.format(record) on my emit() method under DatabaseHandler. Hope this helps whoever face a similar problem. -Edwin On

Re: Weird behaviour in Django logging (Django 1.3 RC)

2011-03-07 Thread Edwin
Sorry I wasn't clear enough. Here's the stack trace: Traceback: File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/ base.py" in get_response 89. response = middleware_method(request) File "/home/user/projects/django/../django/common/middleware.py" in process_re

Re: Weird behaviour in Django logging (Django 1.3 RC)

2011-03-05 Thread Russell Keith-Magee
On Sat, Mar 5, 2011 at 10:41 AM, Edwin wrote: > I'm getting a strange behaviour when setting up logging. Here's my > logging configuration: > > LOGGING = > { >    'version': 1, >    'disable_existing_loggers': True, >    'formatters': { >        'admin_configuration': { >            'format': '%(a

Weird behaviour in Django logging (Django 1.3 RC)

2011-03-04 Thread Edwin
I'm getting a strange behaviour when setting up logging. Here's my logging configuration: LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'formatters': { 'admin_configuration': { 'format': '%(asctime)s %(levelname)s %(category)s % (sub_category)s %(type_