Time-based Log Rotation
To rotate logs according to a time schedule:
Create an appender based on
RollingFileAppender
.Include a time based rolling policy.
Sample
The following sample rotates logs every day, the smallest time increment in the fileNamePattern
element.