[Python-ideas] logging.config.defaultConfig()

Antoine Pitrou solipsis at pitrou.net
Sat May 17 14:55:52 CEST 2014


On Sat, 17 May 2014 14:41:05 +0200
Thomas Güttler
<guettli at thomas-guettler.de> wrote:
> Am 17.05.2014 14:08, schrieb Antoine Pitrou:
> > On Sat, 17 May 2014 14:04:12 +0200
> > Thomas Güttler
> > <guettli at thomas-guettler.de> wrote:
> >>
> >> There are environments where fileConfig() does not solve all needs.
> > 
> > Please explain how.
> 
> If you want to get the config from a database or LDAP. Is
> this supported by fileConfig()?

Obviously not, but you should be able to use dictConfig() for that.
Mapping the database contents to the dict representation expected by
dictConfig() is a domain-specific task that cannot be provided by the
standard library, so it's the application's job to provide it.

Regards

Antoine.




More information about the Python-ideas mailing list