Fixed breaking changes from kotlin-logging
This commit is contained in:
parent
c94a8ff779
commit
e541c60fc2
@ -1,17 +1,17 @@
|
|||||||
package com.jetpackduba.gitnuro.logging
|
package com.jetpackduba.gitnuro.logging
|
||||||
|
|
||||||
import io.github.oshai.KotlinLogging
|
import io.github.oshai.kotlinlogging.KotlinLogging
|
||||||
|
|
||||||
val logger = KotlinLogging.logger("org.slf4j")
|
val logger = KotlinLogging.logger("org.slf4j")
|
||||||
|
|
||||||
fun printLog(tag: String, message: String) {
|
fun printLog(tag: String, message: String) {
|
||||||
logger.info("$tag - $message")
|
logger.info { "$tag - $message" }
|
||||||
}
|
}
|
||||||
|
|
||||||
fun printDebug(tag: String, message: String) {
|
fun printDebug(tag: String, message: String) {
|
||||||
logger.debug("$tag - $message")
|
logger.debug { "$tag - $message" }
|
||||||
}
|
}
|
||||||
|
|
||||||
fun printError(tag: String, message: String, e: Exception? = null) {
|
fun printError(tag: String, message: String, e: Exception? = null) {
|
||||||
logger.error("$tag - $message", e)
|
logger.error(e) { "$tag - $message" }
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user