Class LoggerAdapterImpl


  • public final class LoggerAdapterImpl
    extends AbstractLogger
    INTERNAL API
    • Constructor Detail

    • 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 class Logger
        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 class Logger
        Parameters:
        marker - (undocumented)
        Returns:
        (undocumented)
      • 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 class Logger
        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 class Logger
        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 class Logger
        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 class Logger
        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 class Logger
        Parameters:
        marker - (undocumented)
        Returns:
        (undocumented)
      • 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 class Logger
        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 class Logger
        Parameters:
        clazz - (undocumented)
        Returns:
        (undocumented)
      • withMdc

        public Logger withMdc​(scala.collection.immutable.Map<java.lang.String,​java.lang.Object> mdc)
        Description copied from class: Logger
        Scala API: the returned logger will add the given MDC (Mapped Diagnostic Context) to any log entry logged

        See also akka.actor.typed.scaladsl.Behaviors.withMdc

        Specified by:
        withMdc in class Logger
        Parameters:
        mdc - (undocumented)
        Returns:
        (undocumented)