![JAR search and dependency download from the Maven repository](/logo.png)
tech.ytsaurus.spyt.wrapper.LogLazy.scala Maven / Gradle / Ivy
package tech.ytsaurus.spyt.wrapper
import org.slf4j.Logger
trait LogLazy {
implicit class RichLogger(log: Logger) {
def debugLazy(message: => String): Unit = {
if (log.isDebugEnabled) {
log.debug(message)
}
}
def traceLazy(message: => String): Unit = {
if (log.isTraceEnabled()) {
log.trace(message)
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy