Is it possible to print different levels to different streams using the logging module?
Dotan Barak
dotanba at gmail.com
Sat Jan 16 09:32:05 EST 2010
Hi.
I would like to use the logging module and print the following levels to
the mentioned streams:
CRITICAL -> stderr
ERROR -> stderr
WARNING -> stderr
INFO -> stdout
DEBUG -> stdout
I would like that every message will be printed only once, and for the
stream that i choose.
(I failed to find a "maximum level" for the handlers in the logging module).
Thanks in advanced
Dotan Barak
More information about the Python-list
mailing list