atom feed2 messages in org.apache.commons.dev[Logging] Why Jdk14Logger contructor...
FromSent OnAttachments
Christophe Felix-HenryApr 29, 2002 6:01 am 
Craig R. McClanahanApr 29, 2002 8:30 am 
Subject:[Logging] Why Jdk14Logger contructor sets log level to INFO ?
From:Christophe Felix-Henry (cfel@scort.com)
Date:Apr 29, 2002 6:01:36 am
List:org.apache.commons.dev

I don't understand why Jdk14Logger overwrites the JDK1.4 logging configuration file settings. Here is the Jdk14Logger constructor:

public Jdk14Logger(String name) {

logger = Logger.getLogger(name); logger.setUseParentHandlers(true); logger.setLevel(Level.INFO); }

The java.util.logging.Logger should be configured with the config file settings. I think the two lines that sets properties should be removed.

I have an other problem with JDK1.4 logging. The name of the class that issued the logging request is always "org.apache.commons.logging.impl.Jdk14Logger". Is it possible to work around this problem ?

Christophe