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

a8.common.logging.Logging.scala Maven / Gradle / Ivy

There is a newer version: 1.0.0-20240213_1428_master
Show newest version
package a8.common.logging


import zio.Trace
import LoggingOps._

object Logging {

  def logger(implicit trace: Trace): Logger =
    LoggerFactory.logger(trace.wrap.scalaName)

  def logger(clazz: Class[_]): Logger =
    LoggerFactory.logger(normalizeClassname(clazz))

}

trait Logging {

  @transient implicit protected lazy val logger: Logger = Logging.logger(getClass)

}

trait PublicLogging {

  @transient implicit lazy val logger: Logger = Logging.logger(getClass)

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy