KSLog/src/commonMain/kotlin/KSLogTypealiases.kt

7 lines
272 B
Kotlin
Raw Normal View History

2022-06-08 12:23:11 +00:00
package dev.inmo.kslog.common
typealias MessageFormatter = (l: LogLevel, t: String, m: Any, Throwable?) -> String
2022-06-09 10:29:56 +00:00
typealias MessageFilter = (l: LogLevel, t: String?, Throwable?) -> Boolean
2022-06-08 12:23:11 +00:00
val defaultMessageFormatter: MessageFormatter = { l, t, m, _ -> "[$l] $t - $m" }