Skip to content

Instantly share code, notes, and snippets.

@xerial
Created June 25, 2018 22:59
Show Gist options
  • Save xerial/e32c2d0ee046a2dc8ca674088d8f8cdf to your computer and use it in GitHub Desktop.
Save xerial/e32c2d0ee046a2dc8ca674088d8f8cdf to your computer and use it in GitHub Desktop.
logger.resetHandler(new LogRotationHandler(
fileName = "your-app.log",
maxNumberOfFiles = 100, // rotate up to 100 log files
maxSizeInBytes = 100 * 1024 * 1024 // 100MB
AppLogFormatter // Any log formatter you like
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment