public class Slf4jLogger extends java.lang.Object implements akka.actor.Actor, SLF4JLogging, akka.dispatch.RequiresMessageQueue<akka.event.LoggerMessageQueueSemantics>
The thread in which the logging was performed is captured in Mapped Diagnostic Context (MDC) with attribute name "sourceThread".
Constructor and Description |
---|
Slf4jLogger() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
formatTimestamp(long timestamp)
Override this method to provide a differently formatted timestamp
|
java.lang.String |
mdcActorSystemAttributeName() |
java.lang.String |
mdcAkkaSourceAttributeName() |
java.lang.String |
mdcAkkaTimestamp() |
java.lang.String |
mdcThreadAttributeName() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive() |
void |
withMdc(java.lang.String logSource,
akka.event.Logging.LogEvent logEvent,
scala.Function0<scala.runtime.BoxedUnit> logStatement) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, postRestart, postStop, preRestart, preStart, self, sender, supervisorStrategy, unhandled
log
public java.lang.String mdcThreadAttributeName()
public java.lang.String mdcActorSystemAttributeName()
public java.lang.String mdcAkkaSourceAttributeName()
public java.lang.String mdcAkkaTimestamp()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
receive
in interface akka.actor.Actor
public final void withMdc(java.lang.String logSource, akka.event.Logging.LogEvent logEvent, scala.Function0<scala.runtime.BoxedUnit> logStatement)
protected java.lang.String formatTimestamp(long timestamp)
timestamp
- a "currentTimeMillis"-obtained timestamp