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 vinay.sajip
Recipients glynnc, vinay.sajip
Date 2012-12-27.01:25:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356571545.56.0.707472355235.issue16778@psf.upfronthosting.co.za>
In-reply-to
Content
What about subclassing Logger? Then you could override findCaller() to do whatever you need, as well as adding a notice() method, for example.

I agree using the source filename isn't ideal, but it's hard to know how people might arbitrarily wrap logging calls and still expect the wrappers to be skipped by findCaller(). Do you have any suggested mechanism for doing this?
History
Date User Action Args
2012-12-27 01:25:48vinay.sajipsetrecipients: + vinay.sajip, glynnc
2012-12-27 01:25:45vinay.sajipsetmessageid: <1356571545.56.0.707472355235.issue16778@psf.upfronthosting.co.za>
2012-12-27 01:25:45vinay.sajiplinkissue16778 messages
2012-12-27 01:25:44vinay.sajipcreate