strange behavious of the logging module?

Peter Otten __peter__ at web.de
Mon Sep 24 03:03:02 EDT 2007


Christian Meesters wrote:

> Also, adding %(funcName)-8s to the formatter in basigConfig does not work
> for me: instead of the functions name the level in lower case gets inserted
> into the logfile.

When you call logging.info(...), "info" actually is the function name. As a
workaround use logging.getLogger(...).info(...).

It would still be a good idea to file a bug report.

Peter



More information about the Python-list mailing list