On 8/11/07, Christoph Haas <[EMAIL PROTECTED]> wrote: > > On Fri, Aug 10, 2007 at 09:31:58PM -0700, Mike Orr wrote: > > How do I get the Pylons logging to work in 0.9.6? I tried a few > > variations on "import logging; > > logging.basicConfig(level=logging.DEBUG)" in environment.py and > > middleware.py, but no log output. > > Do you like to log from your application?
I mainly wanted to turn on the built-in Pylons debugging. > # Logging Setup > [loggers] > keys = root,myapplication > > [logger_myapplication] > level = DEBUG > handlers = myapplication > qualname = myapplication > propagate = 0 > > [handlers] > keys = console,myapplication > > [formatters] > keys = generic,myapplication Most of the variable names are self-explanatory from the logging module, but what do these 'keys' variables mean? And where is this all set up? I grepped all over Paste, Pylons, and the application template and I see lots of calls to log things, but nothing to configure the logging. > [logger_root] > level = INFO > handlers = console So if I set this one to 'level = DEBUG' I should see everything? I'd still like to see a quick way to turn on and off logging without modifying a bunch of config entries. Maybe something like "paster serve --debug" or "paster serve --log-level=debug". I kept looking at the paster arguments thinking, "Why is --log-file there but not --log-level?" -- Mike Orr <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
