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


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

how to fix python logging to not log to stderr

Started byharish.chilkoti@gmail.com
First post2014-08-05 02:18 -0700
Last post2014-08-05 11:45 +0200
Articles 2 — 2 participants

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


Contents

  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

#75722 — how to fix python logging to not log to stderr

Fromharish.chilkoti@gmail.com
Date2014-08-05 02:18 -0700
Subjecthow to fix python logging to not log to stderr
Message-ID<e89b16cc-bda3-4e20-8885-a153f308351f@googlegroups.com>
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? 

[toc] | [next] | [standalone]


#75724

From"Arulnambi Nandagoban" <a.nandagoban@traxens.com>
Date2014-08-05 11:45 +0200
Message-ID<mailman.12662.1407231932.18130.python-list@python.org>
In reply to#75722
-----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


[toc] | [prev] | [standalone]


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


csiph-web