Hi,

Here is how I am trying to log a message using log4j:

PatternLayout layout = new PatternLayout();
                wmDfa = new WmDailyFileAppender();
                wmDfa.setName("testOverlappingRollovers");
                wmDfa.setLayout(layout);
                wmDfa.setAppend(true);
                wmDfa.setFile("./log/testOverlappingRollovers.log");
                wmDfa.setDatePattern("'.'yyyy-MM-dd-HH-mm");
                logger.addAppender(wmDfa);
                wmDfa.activateOptions();
                logger.debug("overlappingRollovers---");


I create 2 files testOverlappingRollovers.log.<time and Date> , one and two
minute ahead of the current Time , outside log4j, and then I am using the
Daily Appender to write to these Files., Only one of the file, I create as
read-only, and the other one as writeable.

Now how do I know if the Appender HAS Started or not, there is nothing being
written by the appender into the log file.

Thanks,
-Kamal.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to