#12012: Integration with the Python standard library logging module
-------------------------------------+--------------------------------------
          Reporter:  simon           |         Owner:  nobody
            Status:  new             |     Milestone:  1.3   
         Component:  Core framework  |       Version:  SVN   
        Resolution:                  |      Keywords:        
             Stage:  Accepted        |     Has_patch:  1     
        Needs_docs:  1               |   Needs_tests:  1     
Needs_better_patch:  1               |  
-------------------------------------+--------------------------------------
Changes (by vinay_sa...@yahoo.co.uk):

  * milestone:  => 1.3

Comment:

 I've added a Launchpad branch which is an up-to-date branch of Django
 trunk (as at today - 13 May 2010), with updated logging functionality
 (including a copy of dictConfig, from my project of the same name which is
 a standalone version of the new PEP 391 logging configuration
 functionality, usable with Python 2.4, 2.5 and 2.6). I've inserted some
 logging statements in app loading, SQL execution and request handling
 (including handling of uncaught and other exceptions).

 There's also an example project which uses the Django logging API to
 configure logging in settings.py, via PEP 391-compatible configuration
 dictionary (the initialisation code is only called once, even though
 settings.py is imported at least twice).

 Bazaar branch for the version of Django with logging enabled:
 https://code.launchpad.net/~vinay-sajip/django/logging
 Bazaar branch for test project, which shows how logging can be configured:
 https://code.launchpad.net/~vinay-sajip/+junk/django-logtest

 The test app is set up to log to /tmp/logtest.log (which isn't spammed
 with SQL logging) and /tmp/logtest-sql.log (which contains the SQL
 statements executed).

 Basic diffs to show what was added:

 http://bazaar.launchpad.net/~vinay-sajip/django/logging/revision/53 -
 Added callback hooks
 http://bazaar.launchpad.net/~vinay-sajip/django/logging/revision/55 -
 Added log module reference
 http://bazaar.launchpad.net/~vinay-sajip/django/logging/revision/56 -
 Added log module itself
 http://bazaar.launchpad.net/~vinay-sajip/django/logging/revision/55 -
 Removed log module reference (as not needed)
 http://bazaar.launchpad.net/~vinay-sajip/django/logging/revision/61 -
 Added dictconfig.py and changed code to use it
 http://bazaar.launchpad.net/~vinay-sajip/django/logging/revision/62 -
 Added useful default to configuration
 http://bazaar.launchpad.net/~vinay-sajip/django/logging/revision/63 -
 Added logging to app loading
 http://bazaar.launchpad.net/~vinay-sajip/django/logging/revision/65 -
 Added logging for SQL and uncaught exceptions in request handling
 http://bazaar.launchpad.net/~vinay-sajip/django/logging/revision/67 -
 Added some more logging to request handling code


 Your feedback will be appreciated, especially in terms of other parts of
 Django that you think would benefit particularly from having logging
 added.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12012#comment:16>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to