All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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