[issue11129] logging: allow multiple entries in qualname config

Vinay Sajip report at bugs.python.org
Wed Jun 18 22:30:40 CEST 2014


Vinay Sajip added the comment:

> they really should share the logging configuration

Well, that's easy enough to do - although there would be some duplication in the .ini file, it is not especially onerous. While I well understand the benefits of DRY, I still don't believe this is a very common use case, and there are other ways of doing this: for example, using a logger called zato.scheduler from both scheduler modules. I know that __name__ for naming loggers is a good approach in almost all cases, it's not absolutely mandatory. What I don't want to do is to keep adding functionality (which I will then have to maintain) to an older mechanism when a newer and better one is available. And using dictConfig() doesn't have to mean users/administrators editing Python source code by hand - for example, YAML could be used, or JSON. Or, use .ini but parse the file in your code and build a dict to pass to dictConfig(). Then you can use any schema you want, plus support things like Filters which fileConfig() doesn't do.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11129>
_______________________________________


More information about the Python-bugs-list mailing list