• Post Reply Bookmark Topic Watch Topic
  • New Topic

Logging using Log4j

 
anuja Edathu
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Log4j for logging . How can i limit the number of back ups when iam using DailyRollingFileAppender.


Though here I tried to limit the number of back ups , it does not seem to work . Can any body tell me what can i do about this ?

Thanks & Regar
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You must be confusing DailyRollingFileAppender with RollingFileAppender. DailyRollingFileAppender does not have a property for maxBackupIndex.
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is common to set up a cron job on unix to remove old log files.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!