Class StubbedLoggerWithMdc

    • Constructor Detail

      • StubbedLoggerWithMdc

        public StubbedLoggerWithMdc​(StubbedLogger actual)
    • 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)
      • isErrorEnabled

        public boolean isErrorEnabled()
        Description copied from class: Logger
        Whether error 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:
        isErrorEnabled in class Logger
        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)
      • isWarningEnabled

        public boolean isWarningEnabled()
        Description copied from class: Logger
        Whether error 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)
      • 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)