Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68399
| Date | 2014-03-16 13:50 -0500 |
|---|---|
| From | Tim Chase <python.list@tim.thechases.com> |
| Subject | Re: Clearing out handlers in logging? |
| References | <mailman.8159.1394938715.18130.python-list@python.org> <gd.usenet-B1805D.09394016032014@dwarf.main.lan> <mailman.8167.1394974663.18130.python-list@python.org> <gd.usenet-EA8AA5.19294616032014@dwarf.main.lan> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.8172.1394995811.18130.python-list@python.org> (permalink) |
On 2014-03-16 19:29, Gunther Dietrich wrote: > >> Indeed, THERE IS a removeHandler() method. > > > >Yes, I'm aware of it, having read the source & docs. However, the > >signature is > > Sorry, your original article lacks information about what you > already know/tried and what not. So it is a bit misleading and > makes the impression, you would't read the documentation. It would > have been helpful if you had told us your preconditions. Heh, I tried to make that clear in my initial posting with the "since there are other methods for adding/removing handlers" bit. I guess I could have been more explicit though as to what I'd tried. I generally figure that, if someone knows enough to dig into the stdlib's source code, they also know enough to use dir() and help(). Not *always* the case, but a good hint that they're past the basics. But I could have clarified my question more along the lines of "Should log.handlers be public/documented; should Logger grow clearHandlers() and iterHandlers() methods; or should I wantonly use log.handlers but then just get to keep both pieces if/when it breaks?" -tkc
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Clearing out handlers in logging? Tim Chase <python.list@tim.thechases.com> - 2014-03-15 21:58 -0500
Re: Clearing out handlers in logging? Gunther Dietrich <gd.usenet@spamfence.net> - 2014-03-16 09:39 +0100
Re: Clearing out handlers in logging? Chris Angelico <rosuav@gmail.com> - 2014-03-16 20:02 +1100
Re: Clearing out handlers in logging? Peter Otten <__peter__@web.de> - 2014-03-16 10:18 +0100
Re: Clearing out handlers in logging? Chris Angelico <rosuav@gmail.com> - 2014-03-16 20:35 +1100
Re: Clearing out handlers in logging? Tim Chase <python.list@tim.thechases.com> - 2014-03-16 07:57 -0500
Re: Clearing out handlers in logging? Gunther Dietrich <gd.usenet@spamfence.net> - 2014-03-16 19:29 +0100
Re: Clearing out handlers in logging? Tim Chase <python.list@tim.thechases.com> - 2014-03-16 13:50 -0500
csiph-web