logging module: removing handlers

Michele Simionato michele.simionato at gmail.com
Wed Nov 21 10:34:18 CET 2007


On Nov 21, 10:23 am, "Diez B. Roggisch" <de... at nospam.web.de> wrote:

> I can only guess - but I'd say if you can do
>
> foo.removeHandler(h)
>
> you can do
>
> foo.removeHandler(h)
> h.close()
>
> easily. But not
>
> foo.removeHandler(h) # implicit closing
> bar.addHandler(h)
>
> It does kind of make sense if you decouple the life-cycles IMHO.
>
> Diez

But what is the use case for removing an handler without closing it?

    Michele Simionato



More information about the Python-list mailing list