Thanks Chris. And I have another question about logging.
I can start pyramid with uwsgi successfully now, and the logging info is written to the log file I specified path in the production.ini, but I found exceptions raised in view will be logged to the file which is specified by uwsgi not the one in production.ini, any handy configuration can change this behavior ? I know this is not a problem when start pyramid app by "paster serve xxx.ini", but it happens for the uwsgi case. Since I set RotatingFileHandler in production.ini, I don't hope the error log will be output to uwsgi side. The only way I think is set context=Exception on a exception_view, but it sounds tricky, maybe there is a easier way ? 2011/6/17 Chris McDonough <chr...@plope.com> > On Thu, 2011-06-16 at 09:06 +0800, Zhang Jiawei wrote: > > I don't see anyway in documentation mentioned this, anyone can post a > > url will be helpful. > > > > And maybe add this part to narrative documentation will be useful for > > the fresh man. > > > http://docs.pylonsproject.org/projects/pyramid/1.0/narr/project.html#the-myproject-projectshows > the default configuration file. The stuff under "begin logging > configuration" is the logging configuration. These is the standard Python > logging module .ini configuration settings, documented at e.g. > http://docs.python.org/release/2.5.2/lib/logging-config-fileformat.html . > > - C > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To post to this group, send email to pylons-discuss@googlegroups.com. > To unsubscribe from this group, send email to > pylons-discuss+unsubscr...@googlegroups.com. > 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 pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.