I am in need to use the logging file rolling on daily basis. So to check the behaviour I wrote the log4j.properties on Minute basis, but instead of creating a new file every minute, it is appending logs to the same file. Below is the properties file.
Logs are getting generating into output.log file.
Am I doing something wrong here?
If I'm understanding the syntax of the config file (log4j.appender.<logname>.<logsetting>), I think that is causing your issue - the date pattern is being applied to the "File" logger, instead of the "file" logger.
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop