Graham Dumpleton ha scritto:
> [...]
> It therefore seemed more consistent for only wsgi.errors to be bound
> to request, given that it comes through request environment. This can
> then map to internal Apache ap_log_rerror() function, allowing client
> IP to be listed against message in error log file.
> 
> For sys.stderr, instead use internal Apache ap_log_error() function,
> which will log against server context. For embedded mode of mod_wsgi
> this is main Apache error log and for daemon mode the VirtualHost if
> daemon process is associated with the virtual host. Thus if
> VirtualHost has its own error log different to the main Apache error
> log it will go there.
> 
> This seemed to be about the best compromise one could hope for and so
> what the mod_wsgi C core code does.
> 

+1.


Manlio Perillo
_______________________________________________
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Reply via email to