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


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

Re: PYTHON LOGGING with StreamHandler and FileHandler

Started bydieter <dieter@handshake.de>
First post2014-11-25 07:47 +0100
Last post2014-11-25 07:47 +0100
Articles 1 — 1 participant

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

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: PYTHON LOGGING with StreamHandler and FileHandler dieter <dieter@handshake.de> - 2014-11-25 07:47 +0100

#81489 — Re: PYTHON LOGGING with StreamHandler and FileHandler

Fromdieter <dieter@handshake.de>
Date2014-11-25 07:47 +0100
SubjectRe: PYTHON LOGGING with StreamHandler and FileHandler
Message-ID<mailman.16267.1416898205.18130.python-list@python.org>
Ganesh Pal <ganesh1pal@gmail.com> writes:

> The below program logs all the messages to the log file and displays the
> same on the console .
>
> Please suggest how do I ensure that error and warning log levels go ONLY to
> stdout and/or stder

You read the handler related documentation of the logging module.
When I remember right, you will find there a method allowing you
to control which message levels are handled by the the respective handler.

[toc] | [standalone]


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


csiph-web