logging
Diez B. Roggisch
deets at nospam.web.de
Mon Nov 13 05:10:33 EST 2006
alain.marcel at svd-info.fr wrote:
> Hi all !
> How to remove a logger ?
> There si no logging.removeLogger(name) method.
> I've a lot of objects that create loging.
> When objects are destroyed, associated logger are not. This create
> memory leak...
Instead of removing unused loggers, reuse them. Calling getLogger with an
already known name will not create a new one, but instead return the
already existing one.
Diez
More information about the Python-list
mailing list