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

scribe.Logging.scala Maven / Gradle / Ivy

package scribe

/**
  * Logging is a mix-in to conveniently add logging support to any class or object.
  */
trait Logging {
  /**
    * Override this to change the name of the underlying logger.
    *
    * Defaults to class name with package
    */
  protected def loggerName: String = getClass.getName

  /**
    * The logger for this class.
    */
  protected def logger: Logger = Logger(loggerName)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy