public final class RollingFileLogHandler extends FileLogHandler:
Rotates a text log file when it reaches a configured size.
Existing files are renamed to .1, .2, and so on, with the oldest file removed when the retention count is exceeded.
import klyn.logging.handler
handler = RollingFileLogHandler("application.log", 10_000_000l, 5)| Modifier and Type | Member | Description |
|---|---|---|
| public | RollingFileLogHandlerRollingFileLogHandler(
path as String,
maximumBytes as Long,
files as Int = 10,
minimumLevel as LogLevel = LogLevel.TRACE
): |
Creates a rolling handler. |