[issue20345] Better logging defaults

2014-02-05 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20345 ___ ___

[issue20345] Better logging defaults

2014-01-23 Thread Vinay Sajip
Vinay Sajip added the comment: Can you give me a hint, how I could investigate that? There's no easy way - a lot of Python source is not available for public view, so there's no telling what the impact would be. While the use of the module-level functions is provided as a convenience, I

[issue20345] Better logging defaults

2014-01-23 Thread Arne Babenhauserheide
Arne Babenhauserheide added the comment: Just calling basicConfig() is not problematic. Specifying the format is what requires mental investment (because for that I need to read up on the config options). Would it be possible to add a simple way to select a certain logging style? In

[issue20345] Better logging defaults

2014-01-23 Thread Arne Babenhauserheide
Arne Babenhauserheide added the comment: (though calling logging.basicConfig() still produces some overhead, it does not pull me away from the task I’m currently doing) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20345

[issue20345] Better logging defaults

2014-01-23 Thread Vinay Sajip
Vinay Sajip added the comment: Specifying the format is what requires mental investment (because for that I need to read up on the config options). Not sure what you mean by config options. Is it too much to remember the format= parameter in your first post? I'm not planning to change the

[issue20345] Better logging defaults

2014-01-22 Thread Arne Babenhauserheide
New submission from Arne Babenhauserheide: Currently the default operation of logging prints messages like the following: INFO:root: Milk found. This is close to a print-call, but not much more useful - especially not in small scripts. To make the default settings more useful to quick

[issue20345] Better logging defaults

2014-01-22 Thread R. David Murray
R. David Murray added the comment: Well, you can always call basicConfig yourself...that's kind of the point of it. I'm guessing the current output was chosen exactly because it is pretty much just a print of the input to the log method. But I don't have strong feelings about it. On the

[issue20345] Better logging defaults

2014-01-22 Thread Vinay Sajip
Vinay Sajip added the comment: I don't think it is necessary or advisable to change the default, as it is very easy to provide your own format. As RDM has noted, this could affect backward compatibility. Furthermore, there are bound to be differing views of what an ideal default should be, so

[issue20345] Better logging defaults

2014-01-22 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- resolution: - wont fix status: open - pending type: - enhancement versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20345

[issue20345] Better logging defaults

2014-01-22 Thread Arne Babenhauserheide
Arne Babenhauserheide added the comment: I do not think it is necessary to change the defaults, but I do think that it would help users of python. In the usecase of bigger applications, the default logging format does not matter: the overhead of logging.basicConfig() only happens once while