log4j issue
Hi Everyone,
I have to log the error and messages into a separate log file. I am trying to use che log4j.jar for this. I tried to test if log file is generated or not by invoking a Java class. The log file was created successfully. However when I run the application by invoking index.jsp, log file doesnt get created.
This is how my log4j.properties looks like:
log4j.appender.R.File=app.log
log4j.appender.R.MaxFileSize=900KB
# Don't keep a backup file
log4j.appender.R.MaxBackupIndex=0
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{MMM dd, yyyy HH:mm:ss,SSS} %p [%t] %C{1}.%M(%L) | %m%n
# Allow debug for my app.
log4j.logger.org.apache.struts.demo=ERROR
# Control logging for other open source packages
log4j.logger.com.opensymphony.oscache=FATAL
log4j.logger.net.sf.navigator=FATAL
log4j.logger.org.apache.commons=FATAL
log4j.logger.org.apache.struts.validator=ERROR
log4j.logger.org.displaytag=FATAL
log4j.logger.org.springframework=FATAL
log4j.logger.com.ibatis.db=FATAL
log4j.logger.org.apache.commons.httpclient=ERROR
log4j.logger.httpclient=FATAL
I use OC4J as a server.
Is there something which I am lacking? Will appreciate any help a greate deal.

