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

eu.shiftforward.apso.Logging.scala Maven / Gradle / Ivy

There is a newer version: 0.13.11
Show newest version
package eu.shiftforward.apso

import org.slf4j.LoggerFactory

/**
 * Trait to mixin a slf4j `Logger` object. The `Logger` object is initialized lazily.
 */
trait Logging {
  /**
   * The `Logger` object. This logger will have the same name as the concrete class
   * into which this trait is mixed-in.
   */
  lazy val log = LoggerFactory.getLogger(getClass.getName)
}

/**
 * Trait to mixin a slf4j `Logger` object. The `Logger` object is initialized strictly.
 */
trait StrictLogging {
  /**
   * The `Logger` object. This logger will have the same name as the concrete class
   * into which this trait is mixed-in.
   */
  val log = LoggerFactory.getLogger(getClass.getName)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy