![JAR search and dependency download from the Maven repository](/logo.png)
com.persist.logging.ActorLogging.scala Maven / Gradle / Ivy
The newest version!
package com.persist.logging
import akka.actor.Actor
/**
* This trait should be included in Akka Actors to enable logging.
* Click the visibility All button to see protected
* members that are defined here.
* You might also want to un-click the Actor button.
*/
trait ActorLogging extends Actor {
private[this] val actorName = self.path.toString()
/**
* The logging system.
*/
def loggingSystem:LoggingSystem = LoggingState.loggingSys
/**
* The logger.
*/
protected lazy val log = new Logger(actorName = Some(actorName))
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy