public class ReplicatedEntityLoggingAdapter
extends akka.event.MarkerLoggingAdapter
implements akka.event.DiagnosticLoggingAdapter
Allows MDC and Markers to be used by default in Replicated Entities.
| Constructor and Description |
|---|
ReplicatedEntityLoggingAdapter(akka.event.LoggingBus bus,
java.lang.String logSource,
java.lang.Class<?> logClass,
akka.event.LoggingFilter loggingFilter) |
| Modifier and Type | Method and Description |
|---|---|
static ReplicatedEntityLoggingAdapter |
apply(ReplicatedEntityActor<?,?,?> entity,
akka.actor.ActorSystem system)
Special
LoggingAdapter which adds the enclosing replicated entity persistenceId to each log statement. |
akka.event.LoggingBus |
bus() |
java.lang.Class<?> |
logClass() |
java.lang.String |
logSource() |
debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarningEnabled, loggingFilterWithMarker, warning, warning, warning, warning, warningdebug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, format, info, info, info, info, info, isDebugEnabled, isEnabled, isErrorEnabled, isInfoEnabled, isWarningEnabled, log, log, log, log, log, mdc, notifyDebug, notifyError, notifyError, notifyInfo, notifyLog, notifyWarning, warning, warning, warning, warning, warningclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitakka$event$DiagnosticLoggingAdapter$$_mdc_$eq, akka$event$DiagnosticLoggingAdapter$$_mdc, clearMDC, getMDC, mdc, mdc, setMDCdebug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, format, info, info, info, info, info, isDebugEnabled, isEnabled, isErrorEnabled, isInfoEnabled, isWarningEnabled, log, log, log, log, log, notifyDebug, notifyError, notifyError, notifyInfo, notifyLog, notifyWarning, warning, warning, warning, warning, warningpublic ReplicatedEntityLoggingAdapter(akka.event.LoggingBus bus,
java.lang.String logSource,
java.lang.Class<?> logClass,
akka.event.LoggingFilter loggingFilter)
public static ReplicatedEntityLoggingAdapter apply(ReplicatedEntityActor<?,?,?> entity, akka.actor.ActorSystem system)
LoggingAdapter which adds the enclosing replicated entity persistenceId to each log statement.
It is both a MarkerLoggingAdapter as well as a DiagnosticLoggingAdapter, so MDC capabilities are exposed by default.
entity - (undocumented)system - (undocumented)public akka.event.LoggingBus bus()
bus in class akka.event.MarkerLoggingAdapterpublic java.lang.String logSource()
logSource in class akka.event.MarkerLoggingAdapterpublic java.lang.Class<?> logClass()
logClass in class akka.event.MarkerLoggingAdapter