klyn.logging.handler.RollingFileLogHandler.RollingFileLogHandler
constructor
public RollingFileLogHandler(
path as String,
maximumBytes as Long,
files as Int = 10,
minimumLevel as LogLevel = LogLevel.TRACE
):
Description

Creates a rolling handler.

Parameters
ParameterDescription
pathActive log filename.
maximumBytesRotation threshold in bytes.
filesNumber of archived files retained.
minimumLevelLowest accepted level.
Throws
  • ValueException if a limit is invalid; no file is opened in that case.
Example

handler = RollingFileLogHandler("app.log", 1_000_000l, 3)