On Fri, Jun 17, 2011 at 9:30 AM, Benjamin Sims <[email protected]>wrote:
>
> After digging, my understanding is that logging is set up my paster rather
> than as part of Pyramid. The question is therefore how can I ensure that my
> script works through the same logging framework, based on development.ini?
>

You can run logging.config.fileConfig('/path/to/ini-file') to load the
logging settings.

http://docs.python.org/library/logging.config.html#logging.config.fileConfig


-- 

Michael

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