Log

object Log

Functions

Link copied to clipboard
fun d(tag: String, message: String)
Link copied to clipboard
fun deleteLogFiles(baseDirPath: String, before: Instant)
Link copied to clipboard
fun e(tag: String, message: String, throwable: Throwable? = null)
Link copied to clipboard
fun getLogFile(): Path?
Link copied to clipboard
fun i(tag: String, message: String)
Link copied to clipboard
fun parseLogFileDate(file: Path): Instant?
Link copied to clipboard
fun rotateLogFile(baseDirPath: String, fileName: String? = "log_")

Rotates file logs are written to. If fileName is set to null, delete writing to a file.

Link copied to clipboard
fun w(tag: String, message: String, throwable: Throwable? = null)