logging

Baurzhan Ismagulov ibr at radix50.net
Mon Jun 5 13:19:51 EDT 2006


Hello Vinay,

On Sun, Jun 04, 2006 at 05:23:55AM -0700, Vinay Sajip wrote:
> It's not propagated to the root logger (or to ancestor loggers in
> general) - just to the handlers associated with ancestor loggers.
...
> You can set levels on handlers as well as loggers. So if you add a
> syslog handler to the root and set its level to CRITICAL, only CRITICAL
> messages are sent to syslog.
...
> logging.MYCUSTOMLEVEL  = 25
> logging.addLevelName(logging.MYCUSTOMLEVEL, "MYCUSTOMLEVEL")

Thanks much!

With kind regards,
Baurzhan.



More information about the Python-list mailing list