Hi Jens, > But I can't seem to get logging for the second application up and > running. I have added a keys entry in the [loggers] section, and added > a logger_ section for the second application, setting it to DEBUG > level (as we are developing here). > > But when I do loging.getLogger(__name__) in one of the controllers, I > only get a logger with sets WARNING level, so my normal log.debug and > log.info statements are not going to the log file.
It would probably be helpful if you pasted your logger sections. I know that I have personally had a lot of trouble getting multiple apps to work smoothly from a single config file. A few things I remember: - Some of the paster commands (e.g. "shell" ?) didn't work. - Unit tests seemed to always only use a single app -- whichever app was initialized first, I think. - There was other weirdness when I introduced concepts like pipeline and filter, which compounded these problems. Eventually, I moved to a model where I had different .ini files for each app which then pulled from a defaults.ini that had sections for each app. A little confusing when developing, but proved a lot simpler for deployment. Anyway, my suspicion is that since (IIRC) the logging config file is passed directly to logging.config.fileConfig() method, you cannot have different logging sections for your two different applications. Cheers, Hans -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
