mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2026-11-03 10:03:18 +00:00
now tag in MessageFormatter is a nullable
This commit is contained in:
1 parent
77ca9ce25b
commit
66c5451293
1 file changed
+2
-2
@@ -1,8 +1,8 @@
|
||||
package dev.inmo.kslog.common
|
||||
|
||||
typealias MessageFormatter = (l: LogLevel, t: String, m: Any, Throwable?) -> String
|
||||
typealias MessageFormatter = (l: LogLevel, t: String?, m: Any, Throwable?) -> String
|
||||
@Suppress("NOTHING_TO_INLINE")
|
||||
inline fun MessageFormatter(noinline formatter: MessageFormatter) = formatter
|
||||
typealias MessageFilter = (l: LogLevel, t: String?, Throwable?) -> Boolean
|
||||
val defaultMessageFormatter: MessageFormatter = { l, t, m, _ -> "[$l] $t - $m" }
|
||||
val defaultMessageFormatter: MessageFormatter = { l, t, m, _ -> "[$l] ${t ?.let { "$it " } ?: ""}- $m" }
|
||||
|
||||
Reference in new issue
Block a user