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


Groups > comp.lang.python > #76393 > unrolled thread

redirect stderr to syslog?

Started by"Russell E. Owen" <rowen@uw.edu>
First post2014-08-15 20:04 -0700
Last post2014-08-16 06:42 -0400
Articles 3 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  redirect stderr to syslog? "Russell E. Owen" <rowen@uw.edu> - 2014-08-15 20:04 -0700
    Re: redirect stderr to syslog? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-16 14:39 +1000
      Re: redirect stderr to syslog? Roy Smith <roy@panix.com> - 2014-08-16 06:42 -0400

#76393 — redirect stderr to syslog?

From"Russell E. Owen" <rowen@uw.edu>
Date2014-08-15 20:04 -0700
Subjectredirect stderr to syslog?
Message-ID<mailman.13042.1408158295.18130.python-list@python.org>
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?

I realize the logging module supports this and has a syslog writer, so 
that's a fallback. But we were hoping to use the syslog module for 
performance.

-- Russell

[toc] | [next] | [standalone]


#76395

FromSteven D'Aprano <steve+comp.lang.python@pearwood.info>
Date2014-08-16 14:39 +1000
Message-ID<53eee06a$0$29984$c3e8da3$5496439d@news.astraweb.com>
In reply to#76393
Russell E. Owen wrote:

> I realize the logging module supports this and has a syslog writer, so
> that's a fallback. But we were hoping to use the syslog module for
> performance.

Have you benchmarked your code and discovered that using the logging module
makes a noticeable difference to performance?


-- 
Steven

[toc] | [prev] | [next] | [standalone]


#76402

FromRoy Smith <roy@panix.com>
Date2014-08-16 06:42 -0400
Message-ID<roy-63BC7B.06421216082014@news.panix.com>
In reply to#76395
In article <53eee06a$0$29984$c3e8da3$5496439d@news.astraweb.com>,
 Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote:

> Russell E. Owen wrote:
> 
> > I realize the logging module supports this and has a syslog writer, so
> > that's a fallback. But we were hoping to use the syslog module for
> > performance.
> 
> Have you benchmarked your code and discovered that using the logging module
> makes a noticeable difference to performance?

That's the question I was going to ask.  We're pushing many 10's of GB 
through the logging module every day.  It doesn't even show up on our 
performance profiles.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web