mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2024-12-22 22:17:15 +00:00
KSLog(SimpleKSLogCallback)
This commit is contained in:
parent
0e01534562
commit
3ff5d989b7
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
* Add `setDefaultKSLog`
|
* Add `setDefaultKSLog`
|
||||||
* Add `plus` operation for two `KSLog` instances to call them both on each log performing
|
* Add `plus` operation for two `KSLog` instances to call them both on each log performing
|
||||||
|
* Add `KSLog` factory for simple creation of `CallbackKSLog`
|
||||||
|
|
||||||
## 0.4.1
|
## 0.4.1
|
||||||
|
|
||||||
|
@ -7,3 +7,7 @@ class CallbackKSLog(
|
|||||||
) : KSLog {
|
) : KSLog {
|
||||||
override fun performLog(level: LogLevel, tag: String?, message: Any, throwable: Throwable?) = performLogCallback(level, tag, message, throwable)
|
override fun performLog(level: LogLevel, tag: String?, message: Any, throwable: Throwable?) = performLogCallback(level, tag, message, throwable)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun KSLog(
|
||||||
|
performLogCallback: SimpleKSLogCallback
|
||||||
|
) = CallbackKSLog(performLogCallback)
|
||||||
|
Loading…
Reference in New Issue
Block a user