Class LegacyAbstractLogger

java.lang.Object
org.slf4j.helpers.AbstractLogger
org.slf4j.helpers.LegacyAbstractLogger
All Implemented Interfaces:
Serializable, Logger
Direct Known Subclasses:
EventRecordingLogger, JDK14LoggerAdapter, Reload4jLoggerAdapter, SimpleLogger

public abstract class LegacyAbstractLogger extends AbstractLogger
Provides minimal default implementations for isTraceEnabled(Marker), isDebugEnabled(Marker) and other similar methods.
Since:
2.0
See Also:
  • Constructor Details

  • Method Details

    • isTraceEnabled

      public boolean isTraceEnabled(Marker marker)
      Description copied from interface: Logger
      Similar to Logger.isTraceEnabled() method except that the marker data is also taken into account.
      Parameters:
      marker - The marker data to take into consideration
      Returns:
      True if this Logger is enabled for the TRACE level, false otherwise.
    • isDebugEnabled

      public boolean isDebugEnabled(Marker marker)
      Description copied from interface: Logger
      Similar to Logger.isDebugEnabled() method except that the marker data is also taken into account.
      Parameters:
      marker - The marker data to take into consideration
      Returns:
      True if this Logger is enabled for the DEBUG level, false otherwise.
    • isInfoEnabled

      public boolean isInfoEnabled(Marker marker)
      Description copied from interface: Logger
      Similar to Logger.isInfoEnabled() method except that the marker data is also taken into consideration.
      Parameters:
      marker - The marker data to take into consideration
      Returns:
      true if this Logger is enabled for the INFO level, false otherwise.
    • isWarnEnabled

      public boolean isWarnEnabled(Marker marker)
      Description copied from interface: Logger
      Similar to Logger.isWarnEnabled() method except that the marker data is also taken into consideration.
      Parameters:
      marker - The marker data to take into consideration
      Returns:
      True if this Logger is enabled for the WARN level, false otherwise.
    • isErrorEnabled

      public boolean isErrorEnabled(Marker marker)
      Description copied from interface: Logger
      Similar to Logger.isErrorEnabled() method except that the marker data is also taken into consideration.
      Parameters:
      marker - The marker data to take into consideration
      Returns:
      True if this Logger is enabled for the ERROR level, false otherwise.