← Back to team overview

ufl team mailing list archive

Re: log to stdout or stderr?

 

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


Follow ups

References