Log Rolling/Rotation

Time Based

  • Max History

Size and Time Based

  • Max Size
  • Capacity
logging policy

Acheiving based on time and size - with date+incremental index each file should be at most 20 MB, keep 30 days of history but at most 1GB

References

https://logback.qos.ch/access.html https://dennis-xlc.gitbooks.io/the-logback-manual/content/en/chapter-4-appenders/logback-core/rollingfileappender/size-and-time-based-rolling-policy.html

Will be writing a post on Running Periodic Cron Job..