Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'fallback.': 0.16; 'log.': 0.16; 'logging,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'stderr': 0.16; 'module': 0.19; 'header:User-Agent:1': 0.23; 'received:comcast.net': 0.24; 'logging': 0.26; 'header:X-Complaints-To:1': 0.27; 'but': 0.35; 'there': 0.35; 'subject:?': 0.36; 'to:addr:python-list': 0.38; 'realize': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'our': 0.64; 'hoping': 0.75; 'russell': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: "Russell E. Owen" Subject: redirect stderr to syslog? Date: Fri, 15 Aug 2014 20:04:33 -0700 Organization: University of Washington X-Gmane-NNTP-Posting-Host: c-50-132-7-214.hsd1.wa.comcast.net User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408158295 news.xs4all.nl 2938 [2001:888:2000:d::a6]:49958 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76393 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