[Python-Dev] A new way to configure logging

Paul Moore p.f.moore at gmail.com
Wed Oct 7 17:05:43 CEST 2009


2009/10/7 Vinay Sajip <vinay_sajip at yahoo.co.uk>:
> What's the general feeling here about this proposal? All comments and
> suggestions will be gratefully received.

+1

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)

Paul.


More information about the Python-Dev mailing list