tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: OneLineFormatter by default?
Date Mon, 20 Jun 2011 19:03:02 GMT
Mark,

On 6/20/2011 10:54 AM, Mark Thomas wrote:
> On 20/06/2011 15:51, Rainer Jung wrote:
>> Should we use the new OneLineFormatter as the default juli formatter?
>>
>> I never found anyone who liked the default java.util.logging log format,
>> which spreads all messages out via two lines. One line contains the
>> timestamp, the other line the message.
>>
>> So if your grep for a message, you want find out when it was issued, and
>> if you look for a certain time range, yout wont see the actual messages.
>> Non-sense.
>>
>> Now that we have our nice little OneLineFormatter, why not use it as
>> default?
>>
>> If we use it as default: should be have it as default without config,
>> i.e. as a default in code, or do we want to add the .formatter lines to
>> our loggging.properties? Or add the formatter system property to
>> catalina.properties?
>>
>> I think I would favor having it as a code default, i.e. without any
>> configuration.
> 
> That might be a surprise for users.

+1

Though I also hate the timestamp\nmessage format, too, enough people
probably rely on it to seriously break things.

> I'd lean towards make it the default via config (very easy to revert)
> and change the code default for 8.x onwards.

+1

-chris


Mime
View raw message