how to use logging.config.fileConfig ?

Vinay Sajip vinay_sajip at
Sat Apr 11 01:57:35 CEST 2009

On Apr 10, 3:51 pm, Alexandru  Moșoi <brtz... at> wrote:
> and I found a big comment saying that old loggers are
> disabled! Why? What am I doing wrong?

This is by design, because fileConfig is not meant for incremental
configuration - it is for complete configuration of the logging
system. The old loggers which are not mentioned in the config file are
disabled (rather than removed from memory) as there might be threads
running which reference them. So if your logging configuration is
static for an application run you can use fileConfig. If it is
dyanmic, you are better off using programmatic configuration.


Vinay Sajip

More information about the Python-list mailing list