Hi everyone I'm running a uwsgi server process in an environment where only stdout & stderr are readily available, and would like to separate request and non-request logs. I think I have run into an incompatibility between Py2 and Py3.
In Py2 I just configured python root logging handler to send app-specific logs to stdout and uwsgi logs along with access log went to stderr. In Py3 the situation seems to have changed: now sys.stdout duplicates sys.stderr and I have hard time figuring out the proper configuration to achieve the desired effect. I tried playing with --logger and --req-logger parameters but of no avail. Here's a gist that reproduces the incompatibility between Py2 & Py3: https://gist.github.com/immerrr/fcba019e21dd823ee486 (observe lines starting with "###OUT:" closer to the end of py27 log. Please, advise, what's the correct configuration parameter combination to achieve my goal. Cheers, immerrr _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
