Diez B. Roggisch wote: > [EMAIL PROTECTED] 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 ? -- http://mail.python.org/mailman/listinfo/python-list