Message223550
| Author |
mrohan |
| Recipients |
glynnc, mrohan, ncoghlan, pitrou, vinay.sajip |
| Date |
2014年07月20日.23:49:49 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1405900189.59.0.640728106376.issue16778@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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)" |
|
History
|
|---|
| 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 |
|