Problem with logging module

Diez B. Roggisch deetsNOSPAM at web.de
Wed Oct 13 19:41:01 CEST 2004


> self.logger = logging.getLogger(name)
> self.logger.propagate = False
> handler = logging.FileHandler(dir + '/' + name + '.log')
> self.logger.addHandler(handler)
^^^^
Thats your problem - only set the handler once for the runtime of your
program.

-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list