[Yum-devel] logging

seth vidal skvidal at phy.duke.edu
Sun Mar 7 17:36:16 UTC 2004


> It's possible to subclass the default Logger class such that it has
> more levels (possibly with completely different names) and convenience
> methods.  Then, you simply tell the module to use that class instead.
> Therefore, I think this is pretty much a non-issue.  Out of the box,
> it doesn't do what we want, but it's a pretty trivial subclass to do it.

Reading through the docs redefining the log levels is intended for it.
So not only is it possible, it's expected.

Right now how we're using logger is 3 different instances of the logger
class. So no real change in how it's used.


Keep in mind none of our loggers overlap:
errorlog ->stderr
log->stdout
filelog->yum.log

I'm suggesting
errorlog->stderr
log->stdout
filelog->syslog

-sv





More information about the Yum-devel mailing list