desktop

fun Logger.Companion.desktop(logFormat: LogFormat = LineColorfulFormat): DesktopLogger(source)

Desktop logger.

Since

1.3.1

Parameters

logFormat

Used to set the log style.

val logFactory: LogFactory = getLogFactory {
...
install(LogPrinter) {
logger = Logger.desktop()
}
}

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)
}
}

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.

See also