[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need bug confirmation
From: |
Archie Cobbs |
Subject: |
Re: Need bug confirmation |
Date: |
Sat, 05 Feb 2005 17:26:59 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041129 |
Chris Pickett wrote:
I was wondering if some other Classpath developers could confirm
this bug. I'm trying to rule it out as being JC-specific. The problem
is that the Logger has a level of null instead of FINE:
With JDK 1.4.2:
address@hidden level=FINE
Feb 5, 2005 2:53:25 PM LogInit main
INFO: PASS
With JC:
address@hidden level=null
When I run your program with java-1.4.2, java-1.5.0, and sablevm-1.1.9,
I get the warning message printed followed by a stack trace.
Argh! I somehow attached the wrong test case. Sorry about that.
Please try this one instead...
Thanks,
-Archie
__________________________________________________________________________
Archie Cobbs * CTO, Awarix * http://www.awarix.com
import java.util.*;
import java.util.logging.*;
import java.io.*;
public class LogInit
{
public static void main(String[] args) throws Exception
{
String pfile = "handlers=java.util.logging.ConsoleHandler\n"
+ "java.util.logging.ConsoleHandler.level=FINEST\n"
+ "LogInit.level=FINE\n";
LogManager.getLogManager().readConfiguration(
new ByteArrayInputStream(pfile.getBytes("UTF-8")));
Logger s_log = Logger.getLogger(LogInit.class.getName());
System.out.println("s_log="+s_log+" level="+s_log.getLevel());
s_log.info("PASS");
}
}