Puzzled need help: Problem with logging API

Hi All,

I am initialising LogManager in my application and creating several loggers, depending upon my application module. I am unabled to print anything in the log files or the console. I am puzzled, 'cause I am doing the same thing in another application and it is working. I would really appreciate any help. Following is the breakdown of what I am doing:

I have the following entries in the logging properties file:

handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler

java.util.logging.FileHandler.limit = 5000000

java.util.logging.ConsoleHandler.level = FINEST

java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter

java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

java.util.logging.FileHandler.pattern = crystal%u.log

java.util.logging.FileHandler.count = 10

java.util.logging.FileHandler.level = INFO

Following is the code snippet which initialize logging:

/*

m_logCfgFile points to the logging properties file

*/

System.setProperty("java.util.logging.config.file",m_logCfgFile.getAbsolutePath());

System.out.println("Reading log settings from "+m_logCfgFile.getAbsolutePath());

LogManager logManager = LogManager.getLogManager();

logManager.readConfiguration();

Logger.getLogger("").info("Logging initialized");

/*

the first log message "Logging initialized" is printed on the console, however nothing subsequently is printed.

*/

[1550 byte] By [yantriki] at [2007-9-30 19:40:39]
# 1
> I am puzzled, 'cause I> am doing the same thing in another application and it> is working.Compare for XML and property files between the two.
jschell at 2007-7-7 0:25:20 > top of Java-index,Administration Tools,Sun Connection...
# 2

I am using exactly the same properties file. There is no XML file that I am using. This is all I get printed in the file:

Oct 11, 2004 3:47:23 PM java.util.logging.LogManager$RootLogger log

INFO: Logging initialized

I even checked the handlers. The RootLogger is associated with the same file handler inside of a different code segment, where it does not print. However, when I do

Logger.getLogger("").severe(msg);

It gets printed!!

yantriki at 2007-7-7 0:25:20 > top of Java-index,Administration Tools,Sun Connection...