This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pjenvey
Recipients pjenvey, vinay.sajip
Date 2008-07-16.23:38:46
SpamBayes Score 0.0014497064
Marked as misclassified No
Message-id <1216251529.63.0.522616011962.issue3389@psf.upfronthosting.co.za>
In-reply-to
Content
Python 2.5 added support for specifying a custom logging Formatter class 
in logging configuration files. Handler classes can also be specified, 
but your choice is limited to classes that live in the logging module. 

A current workaround this is to manually add your custom Handler class 
to the logging module prior to loading the logging config file, but then 
you're no longer driving logging configuration purely from a config file 
(which is the entire point). This is particularly important for apps 
that are driven entirely from a config file that also includes logging 
information (such as Pylons applications)

The following patch will cause Handler classes to be resolved just like 
Formatter classes if the check for the Handler class in the logging 
module fails.

FYI this patch has been used in Paste (in particular for Pylons apps) 
for over a year so I consider it stable
History
Date User Action Args
2008-07-16 23:38:49pjenveysetspambayes_score: 0.00144971 -> 0.0014497064
recipients: + pjenvey, vinay.sajip
2008-07-16 23:38:49pjenveysetspambayes_score: 0.00144971 -> 0.00144971
messageid: <1216251529.63.0.522616011962.issue3389@psf.upfronthosting.co.za>
2008-07-16 23:38:48pjenveylinkissue3389 messages
2008-07-16 23:38:48pjenveycreate