Bhavani2007
Programmer
Hi,
This is an urgent issue.
I have my log4j settings like below.
#print logs to File
log4j.appender.DRFILE=org.apache.log4j.RollingFileAppender
log4j.appender.DRFILE.File=logs/productCatalog.log
log4j.appender.DRFILE.MaxFileSize=100MB
log4j.appender.DRFILE.MaxBackupIndex=20
log4j.appender.DRFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.DRFILE.layout.ConversionPattern=productCatalog:%d %p [%c] - %m%n
#OFF, TRACE, DEBUG, INFO
log4j.appender.DRFILE.Threshold=INFO
but my log files are not rotating. it creates productCatalog.log file and once it exceeds 100MB then it deletes this file and creating the same file productCatalog.log
It is not creating productCatalog.log.1 and productCatalog.log.2 till productCatalog.log.20
It was working earlier. suddenly it stops working as expected. Please let me know what could be the problem here.
Thanks,
Bhavani
This is an urgent issue.
I have my log4j settings like below.
#print logs to File
log4j.appender.DRFILE=org.apache.log4j.RollingFileAppender
log4j.appender.DRFILE.File=logs/productCatalog.log
log4j.appender.DRFILE.MaxFileSize=100MB
log4j.appender.DRFILE.MaxBackupIndex=20
log4j.appender.DRFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.DRFILE.layout.ConversionPattern=productCatalog:%d %p [%c] - %m%n
#OFF, TRACE, DEBUG, INFO
log4j.appender.DRFILE.Threshold=INFO
but my log files are not rotating. it creates productCatalog.log file and once it exceeds 100MB then it deletes this file and creating the same file productCatalog.log
It is not creating productCatalog.log.1 and productCatalog.log.2 till productCatalog.log.20
It was working earlier. suddenly it stops working as expected. Please let me know what could be the problem here.
Thanks,
Bhavani