harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <g...@pobox.com>
Subject Re: [classlib][logging] format of log messages
Date Sat, 23 Dec 2006 12:05:01 GMT

On Dec 22, 2006, at 7:32 PM, Alexei Zakharov wrote:

> Hi,
>
> IMHO it is ok to use our own format for log messages produced by
> Logger.log() if the content is the same. BTW I like single-line style
> (currently used in Harmony) even more. So I think we can move this
> JIRA to non-bug-diff. What do others think? BTW I don't know any
> serious applications that do the log parsing.

I can't tell you what apps do log parsing, but I think that we'd want  
to reproduce the same format if possible.

Maybe offer our format as an option?

geir

>
> Thanks,
>
> 2006/12/5, Paulex Yang (JIRA) <jira@apache.org>:
>>     [ http://issues.apache.org/jira/browse/HARMONY-2414? 
>> page=comments#action_12455681 ]
>>
>> Paulex Yang commented on HARMONY-2414:
>> --------------------------------------
>>
>> As long as the record content are exactly same, I think it is not  
>> necessary for us to keep same format on this with RI?  Of course  
>> just like exception message, it is not harmful to use same format  
>> with RI, but at least I think it is not a high priority issue,  
>> except some application is broken on this?
>>
>> > [luni] Compatibility: message format of  
>> java.util.logging.Logger.log()  on Harmony diffes from RI message
>> >  
>> --------------------------------------------------------------------- 
>> ------------------------------------
>> >
>> >                 Key: HARMONY-2414
>> >                 URL: http://issues.apache.org/jira/browse/ 
>> HARMONY-2414
>> >             Project: Harmony
>> >          Issue Type: Bug
>> >            Reporter: Artem Aliev
>> >
>> > J2SE API specifications of java.util.logging.Logger.log() do not  
>> define the
>> > format of reported message.
>> > But output messages on Harmony and RI have different format:
>> > The problems may be with the string parsing:
>> > 1. RI message consists of 2 lines, Harmony message - only 1
>> > 2. The order of the fields in the output message is different;
>> > 3. The implementatios use different separator of class and  
>> method names:
>> >    RI - ' ' but Harmony - '.'
>> > Code for reproducing:
>> > To reproduce this run HT1 test:
>> > -------------HT1.java------------
>> > import java.util.logging.*;
>> > import junit.framework.TestCase;
>> > public class HT1 extends TestCase {
>> >     public void test001() {
>> >         Logger logger = Logger.getLogger("someName");
>> >         logger.log(Level.INFO, "this is a small test.");
>> >     }
>> > }
>> > ------------------
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> If you think it was sent incorrectly contact one of the  
>> administrators: http://issues.apache.org/jira/secure/ 
>> Administrators.jspa
>> -
>> For more information on JIRA, see: http://www.atlassian.com/ 
>> software/jira
>
>
> -- 
> Alexei Zakharov,
> Intel ESSD


Mime
View raw message