#12012: Integration with the Python standard library logging module
-------------------------------------+--------------------------------------
          Reporter:  simon           |         Owner:  nobody
            Status:  new             |     Milestone:        
         Component:  Core framework  |       Version:  SVN   
        Resolution:                  |      Keywords:        
             Stage:  Unreviewed      |     Has_patch:  1     
        Needs_docs:  1               |   Needs_tests:  1     
Needs_better_patch:  1               |  
-------------------------------------+--------------------------------------
Comment (by vsajip):

 Comments on 12012-r11603.diff:

 Re. the change in {{{conf/__init__.py}}}:

 I know there's an open issue about where to place setup code in Django to
 run once only, so I assume this placement of the logging configuration
 code is just temporary because no better mechanism exists? As a user, I
 would prefer to control exactly when and how logging gets set up, and not
 to have it done automagically for me. If you feel that automagic
 configuration is wanted by the majority of users, you can still have an
 additional setting called e.g. AUTOLOG, set by default to True if you
 want, which does the logging setup automatically when true but can be
 overridden when more precise control is wanted. In fact if more
 granularity over logging settings is wanted, you could have a settings
 dict LOGGING_CONFIG {  "enabled": True, "automatic": True } etc.

 Re. the change in {{{db/backends/__init__.py}}}:

 You might want to control via settings.py whether a
 {{{CursorLoggingWrapper}}} is returned rather than a plain cursor. There
 might be some petrol-heads for whom speed is paramount ;-)

 Re. the change in {{{"/dev/null"}}}, presumably this is your new
 {{{django.utils.log}}}:

 I've proposed on python-dev a change to Python logging to add a
 dictConfig() function to the {{{logging.config}}} module. The start of the
 thread is [http://mail.python.org/pipermail/python-
 dev/2009-October/thread.html#92695 here] (though some of the posts don't
 appear in this thread because of broken email clients) and the draft of
 the schema I'm proposing is [http://mail.python.org/pipermail/python-
 dev/2009-October/092782.html here]. It would be good if we could align the
 schemata for the {{{LOGGING}}} dict.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12012#comment:2>
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-updates@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