redirect stderr to syslog?

Terry Reedy tjreedy at udel.edu
Sat Aug 16 03:26:28 EDT 2014


On 8/15/2014 11:04 PM, Russell E. Owen wrote:
> We are using the syslog module for logging, and would like to redirect
> stderr to our log. Is there a practical way to do it?

You can replace sys.stderr with any object with a .write(s) method.


-- 
Terry Jan Reedy




More information about the Python-list mailing list