Proposed changes to logging defaults

Antoine Pitrou solipsis at pitrou.net
Fri Dec 10 06:57:02 EST 2010


On Fri, 10 Dec 2010 11:17:33 +0100
Jean-Michel Pichavant <jeanmichel at sequans.com> wrote:
> Why would you log informative messages to stderr ? (debug, info, warning)
> How stderr is a better choice than stdout ?

By construction really. stderr is initially for errors, but it is
generally used for "out of band" messages such as warnings and various
optional information. stdout is used to output whatever data the user
asked for (which generally isn't errors and warnings). If you redirect
said data to a file, you don't want out of band information to end up
mingled with it.

Regards

Antoine.





More information about the Python-list mailing list