mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-16 03:06:11 -04:00
POC, decoding works.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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")
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user