← Back to team overview

ufl team mailing list archive

Re: log to stdout or stderr?

 

stdout is good. I can add some simpler way to write the log to file as well.

2009/3/19, Anders Logg <logg@xxxxxxxxx>:
> 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
>

-- 
Sendt fra min mobile enhet

Martin


Follow ups

References