Class RuntimeLoggerAdapter

  • All Implemented Interfaces:
    java.io.Serializable, org.refcodes.logger.RuntimeLoggerAccessor, org.slf4j.Logger, org.slf4j.spi.LocationAwareLogger

    public final class RuntimeLoggerAdapter
    extends org.slf4j.helpers.MarkerIgnoringBase
    implements org.refcodes.logger.RuntimeLoggerAccessor, org.slf4j.spi.LocationAwareLogger, java.io.Serializable
    The Class RuntimeLoggerAdapter.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.refcodes.logger.RuntimeLoggerAccessor

        org.refcodes.logger.RuntimeLoggerAccessor.RuntimeLoggerMutator, org.refcodes.logger.RuntimeLoggerAccessor.RuntimeLoggerProperty
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String name  
      • Fields inherited from interface org.slf4j.spi.LocationAwareLogger

        DEBUG_INT, ERROR_INT, INFO_INT, TRACE_INT, WARN_INT
      • Fields inherited from interface org.slf4j.Logger

        ROOT_LOGGER_NAME
    • Constructor Summary

      Constructors 
      Constructor Description
      RuntimeLoggerAdapter​(org.refcodes.logger.RuntimeLogger logger)
      Instantiates a new runtime logger adapter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(java.lang.String msg)
      void debug​(java.lang.String format, java.lang.Object arg)
      void debug​(java.lang.String format, java.lang.Object... args)
      void debug​(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
      void debug​(java.lang.String msg, java.lang.Throwable t)
      void error​(java.lang.String msg)
      void error​(java.lang.String format, java.lang.Object arg)
      void error​(java.lang.String format, java.lang.Object... args)
      void error​(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
      void error​(java.lang.String msg, java.lang.Throwable t)
      java.lang.String getName()  
      org.refcodes.logger.RuntimeLogger getRuntimeLogger()
      In case the Slf4jRuntimeLogger (as created by the Slf4jRuntimeLoggerFactorySingleton) detects that SLF4J has bound a RuntimeLoggerAdapter (i.e. the REFCODES.ORG SLF4J binding), it directly delegates its method calls to the wrapped RuntimeLogger instead of marshaling a log request through this RuntimeLoggerAdapter; as marshaling would mean consolidating of various detailed LogPriority levels to a single SLF4J log level.
      void info​(java.lang.String msg)
      void info​(java.lang.String format, java.lang.Object arg)
      void info​(java.lang.String format, java.lang.Object... args)
      void info​(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
      void info​(java.lang.String msg, java.lang.Throwable t)
      boolean isDebugEnabled()
      boolean isErrorEnabled()
      boolean isInfoEnabled()
      boolean isTraceEnabled()
      boolean isWarnEnabled()
      void log​(org.slf4j.Marker marker, java.lang.String callerFQCN, int level, java.lang.String msg, java.lang.Object[] args, java.lang.Throwable t)
      protected java.lang.Object readResolve()  
      void trace​(java.lang.String msg)
      void trace​(java.lang.String format, java.lang.Object arg)
      void trace​(java.lang.String format, java.lang.Object... args)
      void trace​(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
      void trace​(java.lang.String msg, java.lang.Throwable t)
      void warn​(java.lang.String msg)
      void warn​(java.lang.String format, java.lang.Object arg)
      void warn​(java.lang.String format, java.lang.Object... args)
      void warn​(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
      void warn​(java.lang.String msg, java.lang.Throwable t)
      • Methods inherited from interface org.slf4j.Logger

        debug, debug, debug, debug, debug, error, error, error, error, error, getName, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
      • Methods inherited from class org.slf4j.helpers.MarkerIgnoringBase

        debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, toString, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        protected java.lang.String name
    • Constructor Detail

      • RuntimeLoggerAdapter

        public RuntimeLoggerAdapter​(org.refcodes.logger.RuntimeLogger logger)
        Instantiates a new runtime logger adapter.
        Parameters:
        logger - the logger
    • Method Detail

      • isTraceEnabled

        public boolean isTraceEnabled()
        Specified by:
        isTraceEnabled in interface org.slf4j.Logger
      • trace

        public void trace​(java.lang.String msg)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(java.lang.String format,
                          java.lang.Object arg)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(java.lang.String format,
                          java.lang.Object arg1,
                          java.lang.Object arg2)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(java.lang.String format,
                          java.lang.Object... args)
        Specified by:
        trace in interface org.slf4j.Logger
      • trace

        public void trace​(java.lang.String msg,
                          java.lang.Throwable t)
        Specified by:
        trace in interface org.slf4j.Logger
      • isDebugEnabled

        public boolean isDebugEnabled()
        Specified by:
        isDebugEnabled in interface org.slf4j.Logger
      • debug

        public void debug​(java.lang.String msg)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(java.lang.String format,
                          java.lang.Object arg)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(java.lang.String format,
                          java.lang.Object arg1,
                          java.lang.Object arg2)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(java.lang.String format,
                          java.lang.Object... args)
        Specified by:
        debug in interface org.slf4j.Logger
      • debug

        public void debug​(java.lang.String msg,
                          java.lang.Throwable t)
        Specified by:
        debug in interface org.slf4j.Logger
      • isInfoEnabled

        public boolean isInfoEnabled()
        Specified by:
        isInfoEnabled in interface org.slf4j.Logger
      • info

        public void info​(java.lang.String msg)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(java.lang.String format,
                         java.lang.Object arg)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(java.lang.String format,
                         java.lang.Object arg1,
                         java.lang.Object arg2)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(java.lang.String format,
                         java.lang.Object... args)
        Specified by:
        info in interface org.slf4j.Logger
      • info

        public void info​(java.lang.String msg,
                         java.lang.Throwable t)
        Specified by:
        info in interface org.slf4j.Logger
      • isWarnEnabled

        public boolean isWarnEnabled()
        Specified by:
        isWarnEnabled in interface org.slf4j.Logger
      • warn

        public void warn​(java.lang.String msg)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(java.lang.String format,
                         java.lang.Object arg)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(java.lang.String format,
                         java.lang.Object arg1,
                         java.lang.Object arg2)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(java.lang.String format,
                         java.lang.Object... args)
        Specified by:
        warn in interface org.slf4j.Logger
      • warn

        public void warn​(java.lang.String msg,
                         java.lang.Throwable t)
        Specified by:
        warn in interface org.slf4j.Logger
      • isErrorEnabled

        public boolean isErrorEnabled()
        Specified by:
        isErrorEnabled in interface org.slf4j.Logger
      • error

        public void error​(java.lang.String msg)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(java.lang.String format,
                          java.lang.Object arg)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(java.lang.String format,
                          java.lang.Object arg1,
                          java.lang.Object arg2)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(java.lang.String format,
                          java.lang.Object... args)
        Specified by:
        error in interface org.slf4j.Logger
      • error

        public void error​(java.lang.String msg,
                          java.lang.Throwable t)
        Specified by:
        error in interface org.slf4j.Logger
      • log

        public void log​(org.slf4j.Marker marker,
                        java.lang.String callerFQCN,
                        int level,
                        java.lang.String msg,
                        java.lang.Object[] args,
                        java.lang.Throwable t)
        Specified by:
        log in interface org.slf4j.spi.LocationAwareLogger
      • getRuntimeLogger

        public org.refcodes.logger.RuntimeLogger getRuntimeLogger()
        In case the Slf4jRuntimeLogger (as created by the Slf4jRuntimeLoggerFactorySingleton) detects that SLF4J has bound a RuntimeLoggerAdapter (i.e. the REFCODES.ORG SLF4J binding), it directly delegates its method calls to the wrapped RuntimeLogger instead of marshaling a log request through this RuntimeLoggerAdapter; as marshaling would mean consolidating of various detailed LogPriority levels to a single SLF4J log level.
        Specified by:
        getRuntimeLogger in interface org.refcodes.logger.RuntimeLoggerAccessor
        Returns:
        The wrapped RuntimeLogger used by the Slf4jRuntimeLogger when possible.
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.slf4j.Logger
      • readResolve

        protected java.lang.Object readResolve()
                                        throws java.io.ObjectStreamException
        Throws:
        java.io.ObjectStreamException