Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Urgent:RoleFileAppender is not working in my application

Status
Not open for further replies.

Bhavani2007

Programmer
Jul 24, 2007
5
IN
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


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top