[issue16110] Provide logging.config.configParserConfig

2014-03-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 113341605247 by R David Murray in branch 'default': whatsnew: logging.fileConfig accepts ConfigParser instances. (#16110) http://hg.python.org/cpython/rev/113341605247 -- ___ Python tracker

[issue16110] Provide logging.config.configParserConfig

2012-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset ce0d0d052494 by Vinay Sajip in branch 'default': Closes #16110: fileConfig now accepts a pre-initialised ConfigParser instance. http://hg.python.org/cpython/rev/ce0d0d052494 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rej

[issue16110] Provide logging.config.configParserConfig

2012-10-06 Thread Thomas Bach
Thomas Bach added the comment: Yeah, the change you suggest sounds reasonable. Thanks for reconsidering the case! -- ___ Python tracker ___ _

[issue16110] Provide logging.config.configParserConfig

2012-10-04 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: wont fix -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue16110] Provide logging.config.configParserConfig

2012-10-04 Thread Vinay Sajip
Vinay Sajip added the comment: I could consider relaxing the parameters on fileConfig such that instead of accepting just a string or a file-like object, it additionally accepts a ConfigParser instance. More specifically: def fileConfig(file_or_fname_or_cp, defaults=None): if isinstance(fi

[issue16110] Provide logging.config.configParserConfig

2012-10-04 Thread thbach
thbach added the comment: vinay: I understand your preference of dictConfig over fileConfig as maintainer. But as an application developer I want to provide my user an easy way to adjust logging herself. In the end of the day she is the one knowing what has to be logged in which place. Therefo

[issue16110] Provide logging.config.configParserConfig

2012-10-02 Thread R. David Murray
R. David Murray added the comment: Vinay, you missed one use case in his request: reading the program's configuration, *modifying it* (based on command line args), and then passing it to logging. How would you suggest he handle that use case? Is there an easy way to get from a loaded configu

[issue16110] Provide logging.config.configParserConfig

2012-10-02 Thread Vinay Sajip
Vinay Sajip added the comment: Thanks for the suggestion - I'm sorry, but I'm not inclined to add this. My reasoning is as follows: 1. I want to encourage usage of the dictConfig() API, as fileConfig() does not cover as much of the logging API as dictConfig() does (for example, Filters). I'd

[issue16110] Provide logging.config.configParserConfig

2012-10-02 Thread R. David Murray
Changes by R. David Murray : -- nosy: +vinay.sajip type: -> enhancement versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-

[issue16110] Provide logging.config.configParserConfig

2012-10-02 Thread thbach
New submission from thbach: Currently logging.config provides a fileConfig function which reads a ini-style file via configparser.ConfigParser. I would like to have a function e.g. configParserConfig which accepts a ConfigParser instance and configures logging directly from the settings found