mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-15 10:46:12 -04:00
14 lines
504 B
Kotlin
14 lines
504 B
Kotlin
package testhelpers.logging
|
|
|
|
import eu.darken.cap.common.debug.logging.Logging
|
|
|
|
class JUnitLogger(private val minLogLevel: Logging.Priority = Logging.Priority.VERBOSE) : Logging.Logger {
|
|
|
|
override fun isLoggable(priority: Logging.Priority): Boolean = priority.intValue >= minLogLevel.intValue
|
|
|
|
override fun log(priority: Logging.Priority, tag: String, message: String, metaData: Map<String, Any>?) {
|
|
println("${System.currentTimeMillis()} ${priority.shortLabel}/$tag: $message")
|
|
}
|
|
|
|
}
|