On Mon, 17 Mar 2014 13:55:28 +0200, Martin Matusiak <[email protected]> wrote:

Hi,

I've been searching around for some information about how to do logging to
a shared file in conjunction with mod_wsgi in multiprocess mode and I
haven't been able to find anything concrete.

In my set-up I want to run say 100 workers and have them all log to the
same file. The stdlib logging module does not seem to support this. Is
there anything specifically in mod_wsgi that makes it possible? If not,
what's the best way to do it?

One way is to write to environ['wsgi.errors'], which is a file-like handler mapping to the Apache Error log file. That's what I have been using for debugging purposes. It might or might not be suitable for your needs, though, especially if the logging is not error-related. But that is something mod_wsgi provides.

Cheers,

Joonas

--
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to