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

From "Arulnambi Nandagoban" <a.nandagoban@traxens.com>
References <e89b16cc-bda3-4e20-8885-a153f308351f@googlegroups.com>
Subject RE: how to fix python logging to not log to stderr
Date 2014-08-05 11:45 +0200
Newsgroups comp.lang.python
Message-ID <mailman.12662.1407231932.18130.python-list@python.org> (permalink)

Show all headers | 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