desktop
Desktop logger.
Since
1.3.1
Parameters
logFormat
Used to set the log style.
val logFactory: LogFactory = getLogFactory {
...
install(LogPrinter) {
logger = Logger.desktop()
}
}
Content copied to clipboard
fun LogStore.Companion.desktop(fileRoot: String, fileMaxSize: Long, logFormat: LogFormat = LineFormat): DesktopStore(source)
Desktop log store.
val logFactory: LogFactory = getLogFactory {
...
install(LogStorage) {
logStore = LogStore.desktop("", 1024L * 1000)
}
}
Content copied to clipboard
Since
1.3.1
Parameters
fileRoot
Folder to store log files.
fileMaxSize
The size of a single log file(in bytes).
logFormat
The format of log in files.