Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81489
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.011 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'handler': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'suggest': 0.14; 'handler.': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'stdout': 0.16; 'subject:PYTHON': 0.16; 'header:User-Agent:1': 0.23; 'error': 0.23; 'logging': 0.26; 'header:X-Complaints-To:1': 0.27; 'respective': 0.29; 'related': 0.29; 'writes:': 0.31; 'file': 0.32; 'handled': 0.32; 'subject:with': 0.35; 'there': 0.35; 'module.': 0.36; 'method': 0.36; 'charset:us-ascii': 0.36; 'displays': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'ensure': 0.60; 'read': 0.60; 'logs': 0.60; 'received:217': 0.63; 'levels': 0.65; 'subject:skip:S 10': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | dieter <dieter@handshake.de> |
| Subject | Re: PYTHON LOGGING with StreamHandler and FileHandler |
| Date | Tue, 25 Nov 2014 07:47:15 +0100 |
| References | <CACT3xuWoUO=vdoN0hmPU_283W4ihz=+z4WMgMV3kOBFiZEyyww@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| X-Gmane-NNTP-Posting-Host | pd9e0a989.dip0.t-ipconnect.de |
| User-Agent | Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) |
| Cancel-Lock | sha1:tXdZYhps5d47GNdr6Rz3nhqm9gI= |
| 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.16267.1416898205.18130.python-list@python.org> (permalink) |
| Lines | 12 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1416898205 news.xs4all.nl 2846 [2001:888:2000:d::a6]:45135 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:81489 |
Show key headers only | View raw
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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: PYTHON LOGGING with StreamHandler and FileHandler dieter <dieter@handshake.de> - 2014-11-25 07:47 +0100
csiph-web