It's not a secret anymore!*
The moose likes Struts and the fly likes Strange log4j problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Strange log4j problem." Watch "Strange log4j problem." New topic
Author

Strange log4j problem.

Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 207
Dear all,
I got a strange log4j problem. Here is my log4j.properties file first.
log4j.rootLogger=DEBUG, CPB_LOG
log4j.appender.CPB_LOG=org.apache.log4j.DailyRollingFileAppender
log4j.appender.CPB_LOG.File=file:/D:/x/sys/jboss-3.2.3/server/default/log/cpb.log
log4j.appender.CPB_LOG.layout=org.apache.log4j.PatternLayout
log4j.appender.CPB_LOG.ConversionPattern=[%d{HH:mm:ss}] [%c{2}] %p: %m%n
log4j.appender.CPB_LOG.DatePattern=yyyy-MM-dd
log4j.appender.R.MaxBackupIndex=10
However, it did not create cpb.log at the specified location. I have installed this properties into WEB-INF/classes. Right now, I cannot log any message to cpb.log file now.
If anyone knows how to work out, please tell me ASAP
Thanks
Benson
 
 
subject: Strange log4j problem.
 
Similar Threads
Not able to save logs into .log file
how can I stop log4j writing log to catalina.out
Strange behaviour 'DailyRollingFileAppender', two process one log4j configuration file
How to disable logging in server.log
problem using log4j with eclipse and glassfish