On Wed, Sep 12, 2012 at 12:41:34AM +0200, Vlad K. wrote: > Hi all, > > I'm having a bit of an issue with logging. I did this (a trick I > picked up from a site to enable logging under uwsgi): > > > __init__.py > -------------------- > def main(global_config, **settings): > """ Main WSGI application. > """ > logging.config.fileConfig(settings["logging.config"])
Would your issue go away if you tried
logging.config.fileConfig(settings["logging.config"],
disable_existing_loggers=False)
?
> 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...).
Yeah, sounds like you hit this:
http://mg.pov.lt/blog/logging-fileconfig-gotcha.html
Marius Gedminas
--
Given enough eyeballs all bugs are shallow.
-- Eric S. Raymond, "The Cathedral and the Bazaar"
signature.asc
Description: Digital signature
