logging
alain.marcel at svd-info.fr
alain.marcel at svd-info.fr
Mon Nov 13 07:46:37 EST 2006
Diez B. Roggisch wote:
> 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
Hi
That's a good idea but object name change (necessity).
The only issue seems to have a pool of loggers and select one into it.
I have to encapsulate logging library...
Thanks a lot.
Any ideas ?
More information about the Python-list
mailing list