[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s]
%(message)s
# End logging configuration
Now, if I include logging.config.fileConfig() line in __init__ I have to specifically enable loggers for namespaces in development.ini, the root logger won't catch all. For example, I've disabled debugtoolbar in dev, and in case of exceptions I get nothing on the console unless I add a [logger_waitress] section (with logger key set, qualname, etc...).
If I remove that line (basically, disable logging configuration), logging under Waitress shows root logger catching all (that is not overriden).
What am I doing wrong?
--
.oO V Oo.
Work Hard,
Increase Production,
Prevent Accidents,
and
Be Happy! ;)
> [formatter_generic]
> format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
> # End logging configuration
> Now, if I include logging.config.fileConfig() line in __init__ I have to specifically enable loggers for namespaces in development.ini, the root logger won't catch all. For example, I've disabled debugtoolbar in dev, and in case of exceptions I get nothing on the console unless I add a [logger_waitress] section (with logger key set, qualname, etc...).
> If I remove that line (basically, disable logging configuration), logging under Waitress shows root logger catching all (that is not overriden).
> What am I doing wrong?
It's not apparent to me what's wrong. With a root logger set to DEBUG you should probably be seeing those messages. You may want to try using the logging_tree package as a visual aid:
> Now, if I include logging.config.fileConfig() line in __init__ I
> have to specifically enable loggers for namespaces in
> development.ini, the root logger won't catch all. For example, I've
> disabled debugtoolbar in dev, and in case of exceptions I get
> nothing on the console unless I add a [logger_waitress] section
> (with logger key set, qualname, etc...).