Vinay Sajip added the comment:

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?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16778>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to