On Fri, 10 Dec 2010 11:17:33 +0100 Jean-Michel Pichavant <jeanmic...@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. -- http://mail.python.org/mailman/listinfo/python-list