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


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

Re: Logging to file and not to console

Started byPeter Otten <__peter__@web.de>
First post2013-10-27 12:18 +0100
Last post2013-10-27 12:18 +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: Logging to file and not to console Peter Otten <__peter__@web.de> - 2013-10-27 12:18 +0100

#57736 — Re: Logging to file and not to console

FromPeter Otten <__peter__@web.de>
Date2013-10-27 12:18 +0100
SubjectRe: Logging to file and not to console
Message-ID<mailman.1645.1382872697.18130.python-list@python.org>
Peter Otten wrote:

> def levelnames():
>     try:
>         names = logging._nameToLevel
>     except AttributeError:
>         names = (name for name in logging._levelNames if isinstance(name,
> str))

Trainwreck alert :(

I recommend that you use the following list

"DEBUG INFO WARN ERROR CRITICAL".split()

directly rather than fixing the above.

[toc] | [standalone]


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


csiph-web