I want to use log4j in my web application. I would like to configure log4j in such a way that when the file reaches a certain size, we start writing a new log files, making it easier to open and read.
Can you please explain the set up of RollingFileAppender
?
Best Answer
Lots of examples on the internet, e.g. this creates a daily rolling log file that rolls over to
log4jtest.log.2010-08-25
etc