Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

log4j config  RSS feed

gaucho sands
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use the DailyRollingFileAppender and hv a few doubts/ questions:

I read in the manual that the DailyRollingFileAppender generates a daily log and attaches that day�s date to the log.I also read that the max file size is 10 Mb and that it is also possible to create backups such as test.log.1 and so on..

1.What happens if the log exceeds the 10 Mb within a single day ??
2. Say, the total log size is 30 Mb for any given day, are the logs generated and named as

and at the end of the day are all clubbed together to form test.log.03-08-2004 ??

Can this be possible ? and can anyone provide a small example ?

thnx in adv,
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!