On Tue, May 22, 2012 at 07:41:44AM -0700, Daniel Holth wrote: > Here's a way to work without implicit logging configs. > > In development.ini, create a setting that references the logging config > file (which is the same file): > > [app:myapp] > logging.config = %(here)s/development.ini > > At the top of app(global_config, **settings): > > logging.config.fileConfig(settings['logging.config'])
I would also recommend passing disable_existing_loggers=False when you call fileConfig(), to avoid mysteriously disappearing log messages. (More info at http://mg.pov.lt/blog/logging-fileconfig-gotcha.html) Marius Gedminas -- "If you think C++ is not overly complicated, just what is a protected abstract virtual base pure virtual private destructor, and when was the last time you needed one?" -- Tom Cargil, _C++_Journal_
signature.asc
Description: Digital signature
