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

akka.testkit.Logging.scala Maven / Gradle / Ivy

There is a newer version: 2.2.6.3
Show newest version
package akka.testkit

import akka.actor.ActorSystem

//Yes this is a true hack to let TestEventListener Cross Compile and fix it externally
object Logging {

  def apply(system: ActorSystem, clazz: Class[_]) =
    akka.event.Logging(system, clazz)

  class DefaultLogger extends akka.event.Logging.DefaultLogger {

    override def preStart() =
      self ! akka.event.Logging.InitializeLogger(context.system.eventStream)
  }

  object Error {
    val NoCause = akka.event.Logging.Error.NoCause
  }

  type MDC = Map[String, Any]

  val emptyMDC: MDC = Map()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy