Message178262
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? |
|
Date |
User |
Action |
Args |
2012-12-27 01:25:48 | vinay.sajip | set | recipients:
+ vinay.sajip, glynnc |
2012-12-27 01:25:45 | vinay.sajip | set | messageid: <1356571545.56.0.707472355235.issue16778@psf.upfronthosting.co.za> |
2012-12-27 01:25:45 | vinay.sajip | link | issue16778 messages |
2012-12-27 01:25:44 | vinay.sajip | create | |
|