Message223550
I recently implemented a custom logger derived from Logger and to get the
reporting of modules, etc, correct, I implemented the findCaller using
the same code as library code with the minor change of
if filename == _srcfile:
to
if filename in [logging._srcfile, _mysrcfile]:
with the local _mysrcfile being determined the same as in logging.
Maybe simply having a class list "srcfiles = [_srcfile]" and allowing
people who customize extend this would be the easiest way of handling
this: "Logger.srcfiles.append(_mysrcfile)" |
|
Date |
User |
Action |
Args |
2014-07-20 23:49:49 | mrohan | set | recipients:
+ mrohan, vinay.sajip, ncoghlan, pitrou, glynnc |
2014-07-20 23:49:49 | mrohan | set | messageid: <1405900189.59.0.640728106376.issue16778@psf.upfronthosting.co.za> |
2014-07-20 23:49:49 | mrohan | link | issue16778 messages |
2014-07-20 23:49:49 | mrohan | create | |
|