• Post Reply Bookmark Topic Watch Topic
  • New Topic

log4j max log file size issue for a DailyRollingFileAppender  RSS feed

 
siddhu Math
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I have configured log4J to my application with an appender as
log4j.appender.FILE-D=org.apache.log4j.DailyRollingFileAppender
log4j.appender.FILE-D.File=logs/abc/a.log
log4j.appender.FILE-D.DatePattern=.yyyy-MM-dd
log4j.appender.FILE-D.Threshold=DEBUG


Note : I have not specified any max file size propertie

the issue that i am facing is that when ever the log file size reaches to say 8GB then the logging of messages appends to a new log file which must not be as per my configuration settings, as it is configured to roll at midnight Daily.

so I was just speculating is there any windows 2k3 max file constrain, I even tried googling and got to know that for an NTFS file format the max size for a txt file is 16TB .
hence this should not be an issue but not so sure.

my system configuration is
Windows 2k3 sp2 with 16GB of RAM and has an NTFS file format

can some onehelp me in this regards of what exactly is the issue or is this a bug in Log4J?

Thanks in Advance.....



 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!