object LogSource

This object holds predefined formatting rules for log sources.

In case an akka.actor.ActorSystem is provided, the following apply:

  • akka.actor.Actor and akka.actor.ActorRef will be represented by their absolute physical path
  • providing a String as source will append "(<system address>)" and use the result
  • providing a Class will extract its simple name, append "(<system address>)" and use the result
  • anything else gives compile error unless implicit akka.event.LogSource is in scope for it

In case a akka.event.LoggingBus is provided, the following apply:

Source
Logging.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LogSource
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply[T](o: T, system: ActorSystem)(implicit arg0: LogSource[T]): (String, Class[_])

    Convenience converter access: given an implicit LogSource and akka.actor.ActorSystem, generate the string representation and originating class.

  2. def apply[T](o: T)(implicit arg0: LogSource[T]): (String, Class[_])

    Convenience converter access: given an implicit LogSource, generate the string representation and originating class.

  3. implicit val fromActor: LogSource[Actor]
  4. implicit val fromActorRef: LogSource[ActorRef]
  5. implicit def fromAnyClass[T]: LogSource[Class[T]]
  6. def fromAnyRef(o: AnyRef, system: ActorSystem): (String, Class[_])

    construct string representation for any object according to rules above (including the actor system’s address) with fallback to its Class’s simple name.

  7. def fromAnyRef(o: AnyRef): (String, Class[_])

    construct string representation for any object according to rules above with fallback to its Class’s simple name.

  8. val fromClass: LogSource[Class[_]]
  9. implicit val fromString: LogSource[String]