Class LoggerAdapterImpl
- java.lang.Object
-
- akka.actor.typed.Logger
-
- akka.actor.typed.internal.adapter.AbstractLogger
-
- akka.actor.typed.internal.adapter.LoggerAdapterImpl
-
public final class LoggerAdapterImpl extends AbstractLogger
INTERNAL API
-
-
Constructor Summary
Constructors Constructor Description LoggerAdapterImpl(LoggingBus bus, java.lang.Class<?> logClass, java.lang.String logSource, LoggingFilterWithMarker loggingFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDebugEnabled()
Whether debug logging is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.boolean
isDebugEnabled(LogMarker marker)
Whether debug logging with this marker is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.boolean
isErrorEnabled()
boolean
isErrorEnabled(LogMarker marker)
Whether error logging with this marker is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.boolean
isInfoEnabled()
Whether info logging is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.boolean
isInfoEnabled(LogMarker marker)
Whether info logging with this marker is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.boolean
isWarningEnabled()
Whether warning logging is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.boolean
isWarningEnabled(LogMarker marker)
Whether warning logging with this marker is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.void
notifyDebug(java.lang.String message, OptionVal<LogMarker> marker)
void
notifyError(java.lang.String message, OptionVal<java.lang.Throwable> cause, OptionVal<LogMarker> marker)
void
notifyInfo(java.lang.String message, OptionVal<LogMarker> marker)
void
notifyWarning(java.lang.String message, OptionVal<java.lang.Throwable> cause, OptionVal<LogMarker> marker)
Logger
withLoggerClass(java.lang.Class<?> clazz)
Return a new logger sharing properties of this logger except the logger classLogger
withLogSource(java.lang.String logSource)
Return a new logger sharing properties of this logger except the log sourceLogger
withMdc(scala.collection.immutable.Map<java.lang.String,java.lang.Object> mdc)
Scala API: the returned logger will add the given MDC (Mapped Diagnostic Context) to any log entry logged-
Methods inherited from class akka.actor.typed.internal.adapter.AbstractLogger
debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, error, info, info, info, info, info, info, info, info, info, info, log, log, log, log, log, log, log, log, log, log, mdc, mdc_$eq, notify, warning, warning, warning, warning, warning, warning, warning, warning, warning, warning, warning, warning, warning, warning, warning, warning, warning, warning, warning, warning, withMdc
-
Methods inherited from class akka.actor.typed.Logger
isLevelEnabled, isLevelEnabled
-
-
-
-
Constructor Detail
-
LoggerAdapterImpl
public LoggerAdapterImpl(LoggingBus bus, java.lang.Class<?> logClass, java.lang.String logSource, LoggingFilterWithMarker loggingFilter)
-
-
Method Detail
-
isDebugEnabled
public boolean isDebugEnabled()
Description copied from class:Logger
Whether debug logging is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.- Specified by:
isDebugEnabled
in classLogger
- Returns:
- (undocumented)
-
isDebugEnabled
public boolean isDebugEnabled(LogMarker marker)
Description copied from class:Logger
Whether debug logging with this marker is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.- Specified by:
isDebugEnabled
in classLogger
- Parameters:
marker
- (undocumented)- Returns:
- (undocumented)
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled
in classLogger
-
isErrorEnabled
public boolean isErrorEnabled(LogMarker marker)
Description copied from class:Logger
Whether error logging with this marker is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.- Specified by:
isErrorEnabled
in classLogger
- Parameters:
marker
- (undocumented)- Returns:
- (undocumented)
-
isInfoEnabled
public boolean isInfoEnabled()
Description copied from class:Logger
Whether info logging is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.- Specified by:
isInfoEnabled
in classLogger
- Returns:
- (undocumented)
-
isInfoEnabled
public boolean isInfoEnabled(LogMarker marker)
Description copied from class:Logger
Whether info logging with this marker is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.- Specified by:
isInfoEnabled
in classLogger
- Parameters:
marker
- (undocumented)- Returns:
- (undocumented)
-
isWarningEnabled
public boolean isWarningEnabled()
Description copied from class:Logger
Whether warning logging is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.- Specified by:
isWarningEnabled
in classLogger
- Returns:
- (undocumented)
-
isWarningEnabled
public boolean isWarningEnabled(LogMarker marker)
Description copied from class:Logger
Whether warning logging with this marker is enabled on the actor system level, may not represent the setting all the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries that will not actually end up in any logger output.- Specified by:
isWarningEnabled
in classLogger
- Parameters:
marker
- (undocumented)- Returns:
- (undocumented)
-
notifyDebug
public void notifyDebug(java.lang.String message, OptionVal<LogMarker> marker)
- Specified by:
notifyDebug
in classAbstractLogger
-
notifyError
public void notifyError(java.lang.String message, OptionVal<java.lang.Throwable> cause, OptionVal<LogMarker> marker)
- Specified by:
notifyError
in classAbstractLogger
-
notifyInfo
public void notifyInfo(java.lang.String message, OptionVal<LogMarker> marker)
- Specified by:
notifyInfo
in classAbstractLogger
-
notifyWarning
public void notifyWarning(java.lang.String message, OptionVal<java.lang.Throwable> cause, OptionVal<LogMarker> marker)
- Specified by:
notifyWarning
in classAbstractLogger
-
withLogSource
public Logger withLogSource(java.lang.String logSource)
Description copied from class:Logger
Return a new logger sharing properties of this logger except the log source- Specified by:
withLogSource
in classLogger
- Parameters:
logSource
- (undocumented)- Returns:
- (undocumented)
-
withLoggerClass
public Logger withLoggerClass(java.lang.Class<?> clazz)
Description copied from class:Logger
Return a new logger sharing properties of this logger except the logger class- Specified by:
withLoggerClass
in classLogger
- Parameters:
clazz
- (undocumented)- Returns:
- (undocumented)
-
-