← Back to team overview

ufl team mailing list archive

Re: log to stdout or stderr?

 

On Thu, Mar 19, 2009 at 08:18:39AM +0100, Johan Hake wrote:
> On Thursday 19 March 2009 07:59:40 Anders Logg wrote:
> > Messages from the UFL log system seem to be directed to stderr.
> > I'm expecting to messages to appear on stdout. It makes grepping for
> > things easier.
> >
> > Is there any reason the messages appear on stderr?
> 
> The default destination for the StreamHandler is stderr. 
> 
> If you deside that the screen streamer should be stdout you can do:
> 
>   self._handler = logging.StreamHandler(sys.stdout)
> 
> in the __init__ function of the Logger class.
> 
> Johan

ok. I want to hear what Martin thinks first. There may be some good
reason to use stderr.

-- 
Anders

Attachment: signature.asc
Description: Digital signature


Follow ups

References