Message20470
Logged In: YES
user_id=3066
Vinay: I don't think that will work. Another issue that
crops up once I start looking into the Logger class is that
findCaller() won't do (what I think is) the Right Thing when
wrappers and subclasses are involved.
After reviewing my application, I think the only thing the
application really needs to control is the creation of the
record objects, but that has to happen on the wrapper, or
there's no way to get the necessary information into the
record (without seriously performing surgery on the
underlying logger).
I think I've come up with a base class that does the Right
Thing, but I need to write up an explanation of why it works
the way it does. It's not massively mysterious, but does
end up dealing with more than I really like worrying about.
I don't have any more time for this tonight, but will write
up what I have and post it here in the next few days.
It shouldn't be hard to refactor what's in logging.Logger
and my base class to share most of the code. Having the
base class in the logging package would avoid having to use
a separate findCaller() implementation.
Boosting the priority to make sure this stays on my radar. |
|
Date |
User |
Action |
Args |
2007-08-23 14:20:52 | admin | link | issue932563 messages |
2007-08-23 14:20:52 | admin | create | |
|