It's all about the answers!

Ask a question

Configure the logfile rename to only include the day-number?


Chris Cawthorne (962819) | asked Feb 08 '10, 11:56 a.m.
Is there any way to configure a rolling logfile appender (in log4j.properties) such that at midnight it renames the logfile to a new name that includes the day-of-month instead of the full date. For example: rename jazz.log to jazz.log.09
If this would also cause it to overwrite any existing logfile called jazz.log.09 it would allow us to keep a month of logs without having to worry that they would eventually fill up the disk.

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.