Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.news.ox.ac.uk!news.ox.ac.uk!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:not': 0.03; 'handler': 0.05; 'propagate': 0.09; 'python': 0.11; 'de\xa0:': 0.16; 'skip:[ 60': 0.16; 'stderr': 0.16; 'stdout': 0.16; 'subject:log': 0.16; 'subject:python': 0.16; 'attach': 0.16; 'fix': 0.17; 'print': 0.22; 'logging': 0.26; 'header:In-Reply- To:1': 0.27; 'to:2**1': 0.27; 'to:no real name:2**1': 0.29; 'url:mailman': 0.30; 'file': 0.32; 'url:python': 0.33; 'url:listinfo': 0.36; 'doing': 0.36; 'url:org': 0.36; 'received:it': 0.37; 'email addr:python.org': 0.37; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'how': 0.40; 'remove': 0.60; 'logs': 0.60; 'august': 0.61; 'email addr:gmail.com': 0.63; 'email name:python-list': 0.65; 'to:addr:gmail.com': 0.65; 'received:46': 0.66 X-Rid: a.nandagoban@traxens.com@46.218.201.210 From: "Arulnambi Nandagoban" To: , References: In-Reply-To: Subject: RE: how to fix python logging to not log to stderr Date: Tue, 5 Aug 2014 11:45:27 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQKOvbeWykDuStVMpLcnlUpC2V563ZpDqEDw Content-Language: en-us 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: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1407231932 news.xs4all.nl 2922 [2001:888:2000:d::a6]:36122 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75724 -----Message d'origine----- De=A0: Python-list [mailto:python-list-bounces+a.nandagoban=3Dtraxens.com@python.org] De la = part de harish.chilkoti@gmail.com Envoy=E9=A0: Tuesday, August 5, 2014 11:18 AM =C0=A0: python-list@python.org Objet=A0: how to fix python logging to not log to stderr I am doing this logging.basiConfig(logleve=3DLogging.Info) then i create a file log handler and attach to it.=20 i also have propagate as True. My logs are going to the stderr as well.=20 How do i fix so that logs don't go to stdout?=20 --=20 https://mail.python.org/mailman/listinfo/python-list hello, remove logging.basiConfig, it won't print log in stdout