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:
- akka.actor.Actor and akka.actor.ActorRef will be represented by their absolute physical path
- providing a
String
as source will be used as is - providing a
Class
will extract its simple name - anything else gives compile error unless implicit akka.event.LogSource is in scope for it
- Source
- Logging.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LogSource
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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. -
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. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit val fromActor: LogSource[Actor]
- implicit val fromActorRef: LogSource[ActorRef]
- implicit def fromAnyClass[T]: LogSource[Class[T]]
-
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. -
def
fromAnyRef(o: AnyRef): (String, Class[_])
construct string representation for any object according to rules above with fallback to its
Class
’s simple name. - val fromClass: LogSource[Class[_]]
- implicit val fromString: LogSource[String]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )