Coverage Summary for Class: MokokiLogger (com.javiersc.mokoki)
Class |
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
MokokiLogger$Companion |
100%
(4/4)
|
|
100%
(4/4)
|
100%
(14/14)
|
Total |
100%
(4/4)
|
|
100%
(4/4)
|
100%
(14/14)
|
package com.javiersc.mokoki
import kotlin.native.concurrent.ThreadLocal
import kotlin.reflect.KClass
import kotlin.reflect.KType
public interface MokokiLogger {
public var useCompatibleMode: Boolean
public fun isLoggable(priority: Priority): Boolean
public fun <T : Any> log(
priority: Priority,
tag: String?,
kClass: KClass<T>,
kType: KType,
message: T,
)
@ThreadLocal
public companion object {
@PublishedApi internal val internalLoggers: MutableList<MokokiLogger> = mutableListOf()
public val loggers: List<MokokiLogger>
get() = internalLoggers
public fun install(vararg loggers: MokokiLogger) {
this.internalLoggers.addAll(loggers)
}
public fun uninstallAllLoggers() {
internalLoggers.clear()
}
}
}