[Python-Dev] A new way to configure logging (original) (raw)

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


Paul Moore <p.f.moore 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.

Regards,

Vinay Sajip



More information about the Python-Dev mailing list