Class Phase4DelegatedLogger

java.lang.Object
com.helger.phase4.logging.Phase4DelegatedLogger
All Implemented Interfaces:
org.slf4j.Logger

public final class Phase4DelegatedLogger extends Object implements org.slf4j.Logger
A specific implementation of Logger that allows to customize the message e.g. with prefix and suffix.
Since:
3.1.0-beta3
Author:
Philip Helger
  • Constructor Details

    • Phase4DelegatedLogger

      public Phase4DelegatedLogger(@NonNull org.slf4j.Logger aDelegate, @NonNull Function<String,String> aMsgCustomizer)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.slf4j.Logger
    • makeLoggingEventBuilder

      public org.slf4j.spi.LoggingEventBuilder makeLoggingEventBuilder(org.slf4j.event.Level level)
      Specified by:
      makeLoggingEventBuilder in interface org.slf4j.Logger
    • atLevel

      public org.slf4j.spi.LoggingEventBuilder atLevel(org.slf4j.event.Level level)
      Specified by:
      atLevel in interface org.slf4j.Logger
    • isEnabledForLevel

      public boolean isEnabledForLevel(org.slf4j.event.Level level)
      Specified by:
      isEnabledForLevel in interface org.slf4j.Logger
    • isTraceEnabled

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

      public void trace(String sMsg)
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(String sFormat, Object aArg)
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(String sFormat, Object aArg1, Object aArg2)
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(String sFormat, Object... aArgs)
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(String sMsg, Throwable t)
      Specified by:
      trace in interface org.slf4j.Logger
    • isTraceEnabled

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

      public void trace(org.slf4j.Marker aMarker, String sMsg)
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(org.slf4j.Marker aMarker, String sFormat, Object aArg)
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(org.slf4j.Marker aMarker, String sFormat, Object aArg1, Object aArg2)
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(org.slf4j.Marker aMarker, String sFormat, Object... aArgs)
      Specified by:
      trace in interface org.slf4j.Logger
    • trace

      public void trace(org.slf4j.Marker aMarker, String sMsg, Throwable t)
      Specified by:
      trace in interface org.slf4j.Logger
    • atTrace

      public org.slf4j.spi.LoggingEventBuilder atTrace()
      Specified by:
      atTrace in interface org.slf4j.Logger
    • isDebugEnabled

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

      public void debug(String sMsg)
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(String sFormat, Object aArg)
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(String sFormat, Object aArg1, Object aArg2)
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(String sFormat, Object... aArgs)
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(String sMsg, Throwable t)
      Specified by:
      debug in interface org.slf4j.Logger
    • isDebugEnabled

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

      public void debug(org.slf4j.Marker aMarker, String sMsg)
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(org.slf4j.Marker aMarker, String sFormat, Object aArg)
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(org.slf4j.Marker aMarker, String sFormat, Object aArg1, Object aArg2)
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(org.slf4j.Marker aMarker, String sFormat, Object... aArgs)
      Specified by:
      debug in interface org.slf4j.Logger
    • debug

      public void debug(org.slf4j.Marker aMarker, String sMsg, Throwable t)
      Specified by:
      debug in interface org.slf4j.Logger
    • atDebug

      public org.slf4j.spi.LoggingEventBuilder atDebug()
      Specified by:
      atDebug in interface org.slf4j.Logger
    • isInfoEnabled

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

      public void info(String sMsg)
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(String sFormat, Object aArg)
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(String sFormat, Object aArg1, Object aArg2)
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(String sFormat, Object... aArgs)
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(String sMsg, Throwable t)
      Specified by:
      info in interface org.slf4j.Logger
    • isInfoEnabled

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

      public void info(org.slf4j.Marker aMarker, String sMsg)
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(org.slf4j.Marker aMarker, String sFormat, Object aArg)
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(org.slf4j.Marker aMarker, String sFormat, Object aArg1, Object aArg2)
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(org.slf4j.Marker aMarker, String sFormat, Object... aArgs)
      Specified by:
      info in interface org.slf4j.Logger
    • info

      public void info(org.slf4j.Marker aMarker, String sMsg, Throwable t)
      Specified by:
      info in interface org.slf4j.Logger
    • atInfo

      public org.slf4j.spi.LoggingEventBuilder atInfo()
      Specified by:
      atInfo in interface org.slf4j.Logger
    • isWarnEnabled

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

      public void warn(String sMsg)
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(String sFormat, Object aArg)
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(String sFormat, Object aArg1, Object aArg2)
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(String sFormat, Object... aArgs)
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(String sMsg, Throwable t)
      Specified by:
      warn in interface org.slf4j.Logger
    • isWarnEnabled

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

      public void warn(org.slf4j.Marker aMarker, String sMsg)
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(org.slf4j.Marker aMarker, String sFormat, Object aArg)
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(org.slf4j.Marker aMarker, String sFormat, Object aArg1, Object aArg2)
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(org.slf4j.Marker aMarker, String sFormat, Object... aArgs)
      Specified by:
      warn in interface org.slf4j.Logger
    • warn

      public void warn(org.slf4j.Marker aMarker, String sMsg, Throwable t)
      Specified by:
      warn in interface org.slf4j.Logger
    • atWarn

      public org.slf4j.spi.LoggingEventBuilder atWarn()
      Specified by:
      atWarn in interface org.slf4j.Logger
    • isErrorEnabled

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

      public void error(String sMsg)
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(String sFormat, Object aArg)
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(String sFormat, Object aArg1, Object aArg2)
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(String sFormat, Object... aArgs)
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(String sMsg, Throwable t)
      Specified by:
      error in interface org.slf4j.Logger
    • isErrorEnabled

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

      public void error(org.slf4j.Marker aMarker, String sMsg)
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(org.slf4j.Marker aMarker, String sFormat, Object aArg)
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(org.slf4j.Marker aMarker, String sFormat, Object aArg1, Object aArg2)
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(org.slf4j.Marker aMarker, String sFormat, Object... aArgs)
      Specified by:
      error in interface org.slf4j.Logger
    • error

      public void error(org.slf4j.Marker aMarker, String sMsg, Throwable t)
      Specified by:
      error in interface org.slf4j.Logger
    • atError

      public org.slf4j.spi.LoggingEventBuilder atError()
      Specified by:
      atError in interface org.slf4j.Logger
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object