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


Groups > comp.lang.python > #75724

RE: how to fix python logging to not log to stderr

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 <a.nandagoban@traxens.com>
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" <a.nandagoban@traxens.com>
To <harish.chilkoti@gmail.com>, <python-list@python.org>
References <e89b16cc-bda3-4e20-8885-a153f308351f@googlegroups.com>
In-Reply-To <e89b16cc-bda3-4e20-8885-a153f308351f@googlegroups.com>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.12662.1407231932.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


-----Message d'origine-----
De : Python-list
[mailto:python-list-bounces+a.nandagoban=traxens.com@python.org] De la part
de harish.chilkoti@gmail.com
Envoyé : Tuesday, August 5, 2014 11:18 AM
À : python-list@python.org
Objet : how to fix python logging to not log to stderr

I am doing this

logging.basiConfig(logleve=Logging.Info)

then i create a file log handler and attach to it. 

i also have propagate as True.

My logs are going to the stderr as well. 

How do i fix so that logs don't go to stdout? 
-- 
https://mail.python.org/mailman/listinfo/python-list

hello,

remove logging.basiConfig, it won't print log in stdout


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


Thread

how to fix python logging to not log to stderr harish.chilkoti@gmail.com - 2014-08-05 02:18 -0700
  RE: how to fix python logging to not log to stderr "Arulnambi Nandagoban" <a.nandagoban@traxens.com> - 2014-08-05 11:45 +0200

csiph-web