[Python-Dev] Using logging in the stdlib and its unit tests (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Fri Dec 10 21:49:19 CET 2010
- Previous message: [Python-Dev] Using logging in the stdlib and its unit tests
- Next message: [Python-Dev] Using logging in the stdlib and its unit tests
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 10 Dec 2010 12:31:19 -0800 Guido van Rossum <guido at python.org> wrote:
> The default setting of WARNING is not from Java either - it's the Unix idea that > verbosity should be kept to a minimum unless specifically requested. So, > warnings and errors should be shown, but info and debug not. Imagine if the > default level was DEBUG - lots of detailed stuff would be displayed, which would > be off-putting for most users.
And yet, I have helped many people who were baffled by exactly what Bill observed: logging.info() didn't do anything. Maybe the default should be INFO?
Funny, because displaying only errors and silencing other messages is exactly what I expected logging to do by default.
Regards
Antoine.
- Previous message: [Python-Dev] Using logging in the stdlib and its unit tests
- Next message: [Python-Dev] Using logging in the stdlib and its unit tests
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]