Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #76398

Re: redirect stderr to syslog?

From Terry Reedy <tjreedy@udel.edu>
Subject Re: redirect stderr to syslog?
Date 2014-08-16 03:26 -0400
References <rowen-500811.20043015082014@news.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.13045.1408174032.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: redirect stderr to syslog? Terry Reedy <tjreedy@udel.edu> - 2014-08-16 03:26 -0400
  Re: redirect stderr to syslog? Grant Edwards <invalid@invalid.invalid> - 2014-08-18 13:52 +0000

csiph-web