Yes thanks, actually the answers to your question got me much of the way to getting in right, I just wasn't sure whether there was a 'correct' non-paster way.
Thanks for that Michael, that makes perfect sense. Regards, Ben On 19 June 2011 01:35, Zhang Jiawei <[email protected]> wrote: > I ask the same question several days ago here,. The only issue in this way > is that, any log which is originally outputted to like uwsgi will not be > outputted to the log file which is specified in ini file. Like exceptions or > request info. > > Regards, > Jay Zhang > > > 2011/6/19 Michael Merickel <[email protected]> > >> 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. >> > > -- > 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. > -- 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.
