[Python-Dev] A new way to configure logging

Vinay Sajip vinay_sajip at yahoo.co.uk
Thu Oct 8 07:43:20 CEST 2009

Paul Moore <p.f.moore <at> gmail.com> writes:

> One option I would have found useful in some code I wrote would be to
> extend the configuration -
> class DictConfigurator:
>    ...
>    def extend(self, moreconfig):
>       import copy
>       more = copy.deepcopy(moreconfig) # Not sure if this is needed?
>       self.config.update(more)

See my response to Paul Rudin's post about incremental configuration.


Vinay Sajip

More information about the Python-Dev mailing list