[issue6399] Error reporting by logging.config.fileConfig()

2009-07-08 Thread Vinay Sajip
Vinay Sajip added the comment: Mike, That's just fine. Sorry if I appear unhelpful, but in the open source world we mostly scratch our own itches. I believe I have a reasonable record on accepting patches from the community (though I don't of course accept everything), and I unfortunately don't

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-08 Thread Mike
Mike added the comment: Hi Vinay, I will bow to your greater expertise on this and will let this go. It looks like it will be far more easier and robust just to invent my own logging config file format and read it myself. Thanks for your help. Mike. -- status: open -> closed __

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-07 Thread Vinay Sajip
Vinay Sajip added the comment: Well, there are other systems around (e.g. ConfigObj) which will allow you to validate against a schema, but it's not part of the core so logging can't rely on it. I'm not sure how much interest there'd be in adding this kind of validation to ConfigParser, but you

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-07 Thread Mike
Mike added the comment: Sorry, I only started learning Python a couple of weeks ago. Didn't know that there was a ConfigParser module. So this would really be a feature request of ConfigParser? Interesting you should mention Postel's Law. Being liberal about what you accept from others doesn

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-03 Thread Vinay Sajip
Vinay Sajip added the comment: I'm not sure that this is a valid feature request. As R. David Murray has said, it's sort of an unwritten rule of ConfigParser-based applications that they look for specific entries, but don't care what else is there in the file - sort of in line with Postel's Law.

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-03 Thread Mike
Mike added the comment: Fair point. Agree that this is a feature request. Perhaps something like: logging.config.fileConfig(path, strict=False) -- ___ Python tracker ___ _

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-02 Thread R. David Murray
R. David Murray added the comment: Ignoring unknown options in the configuration file is analogous to ignoring unknown tags in html: it makes it easier to use the same config file with multiple versions of the logger, with older versions ignoring the options they don't understand. This is a tra

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-02 Thread Mike
New submission from Mike : Hi, I had a logging.conf file with the following logger def in it: [logger_Builder] level=DEBUG handlers=consoleStderr qualname=Builder propogate=0 And I couldn't understand why all my log messages were coming out twice. It took me four hours :-\ to realise I had mis