On Feb 24, 2009, at 3:49 PM, Shannon -jj Behrens wrote:

> It's weird that the default setup in development.ini is:
>
> [handler_console]
> class = StreamHandler
> args = (sys.stderr,)
> level = NOTSET
> formatter = generic
>
> I used log.warn in my controller and it didn't go to stderr.  I  
> changed level to INFO so I can see the logging message.


Works for me. The console handler isn't filtering anything, its level  
is NOTSET so it should be logging everything that goes through it.

The Pylons project's top level package should have its own logger set  
to DEBUG by default, which means any logger under it, like  
myapp.controllers.mycontroller, should be sending WARN to the console  
handler.

--
Philip Jenvey


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to