Posted By:
Bandita_Pradhan
Posted On:
Friday, July 31, 2009 07:10 PM
Hi, Here is my log4j.properties file and I am placing it in WEB-INF/classes. I have log4j-1.2.8.jar file in $CATALINA_HOME/common/lib/ log4j.rootLogger=debug, R #log4j.appender.stdout=org.apache.log4j.ConsoleAppender #log4j.appender.stdout.layout=org.apache.log4j.PatternLayout # Pattern to output the caller's file name and line number. log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=D:\AgentConnect.log log4j.appender.R.MaxFileSize=100KB # Keep one backup file log4j.appender.R.MaxBackupIndex=1 log4j.appender.R.layout=org.apache.log4j.Patter
More>>
Hi,
Here is my log4j.properties file and I am placing it in WEB-INF/classes. I have log4j-1.2.8.jar file in $CATALINA_HOME/common/lib/
log4j.rootLogger=debug, R
#log4j.appender.stdout=org.apache.log4j.ConsoleAppender
#log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=D:\AgentConnect.log
log4j.appender.R.MaxFileSize=100KB
# Keep one backup file
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
When I run junit test cases , it is writing the log . But, when I deploy war file , it does not show up after excuting the webapps. I am deploying my war file in Tomcat 5.0 and using jdk 1.4 .
Thanks,
Bandita Pradhan
<<Less