Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #57736 > unrolled thread
| Started by | Peter Otten <__peter__@web.de> |
|---|---|
| First post | 2013-10-27 12:18 +0100 |
| Last post | 2013-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.
Re: Logging to file and not to console Peter Otten <__peter__@web.de> - 2013-10-27 12:18 +0100
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Date | 2013-10-27 12:18 +0100 |
| Subject | Re: 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.
Back to top | Article view | comp.lang.python
csiph-web