Posted By:
sangeeta_bhatia
Posted On:
Tuesday, October 7, 2008 01:26 PM
Hi All, I am using log4j-1.2.8.jar in a simple web application which reads an excel file and populates some tables in the database. The problem I am facing is that all the logs are written only at the time of server start-up. Any subsequent transaction is not being logged at all. Would anyone have any clue about this? Contents of log4j.properties are below: #Logger Properties log4j.rootCategory=debug, rolling log4j.category.org.apache.wsif=debug log4j.category.com.bt=debug log4j.category.com.bt.fce=debug log4j.category.com.bt.fce.spiAdmin=debug log4j.category.com.bt.fce.spiAdmin.domain.dao=debug log4j.category.com.bt.fce.spiAdmin.web.ac
More>>
Hi All,
I am using log4j-1.2.8.jar in a simple web application which reads an excel file and populates some tables in the database.
The problem I am facing is that all the logs are written only at the time of server start-up. Any subsequent transaction is not being logged at all.
Would anyone have any clue about this? Contents of log4j.properties are below:
#Logger Properties
log4j.rootCategory=debug, rolling
log4j.category.org.apache.wsif=debug
log4j.category.com.bt=debug
log4j.category.com.bt.fce=debug
log4j.category.com.bt.fce.spiAdmin=debug
log4j.category.com.bt.fce.spiAdmin.domain.dao=debug
log4j.category.com.bt.fce.spiAdmin.web.action=debug
log4j.category.com.bt.fce.spiAdmin.web.form=debug
# ROLLING FILE APPENDER (rolling)
log4j.appender.rolling=org.apache.log4j.RollingFileAppender
# configuration information
log4j.appender.rolling.File=fce_spiadmin_rolling.log
log4j.appender.rolling.MaxFileSize=1000KB
# Keep one backup file
log4j.appender.rolling.MaxBackupIndex=2
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=[%r] %d{dd MMM yyyy HH:mm:ss} %c : %M %-5p - %m%n
# ROLLING FILE APPENDER (auditlog)
log4j.appender.auditlog=org.apache.log4j.RollingFileAppender
# configuration information
log4j.appender.auditlog.File=Audit_logs.log
log4j.appender.auditlog.MaxFileSize=1000KB
# Keep one backup file
log4j.appender.auditlog.MaxBackupIndex=2
log4j.appender.auditlog.layout=org.apache.log4j.PatternLayout
log4j.appender.auditlog.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss} , %m%n
Thanks for your help and time!
<<Less