Package org.slf4j.helpers
Class LegacyAbstractLogger
- java.lang.Object
-
- org.slf4j.helpers.AbstractLogger
-
- org.slf4j.helpers.LegacyAbstractLogger
-
- All Implemented Interfaces:
java.io.Serializable,Logger
- Direct Known Subclasses:
EventRecordingLogger
public abstract class LegacyAbstractLogger extends AbstractLogger
Provides minimal default implementations forisTraceEnabled(Marker),isDebugEnabled(Marker)and other similar methods.- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.slf4j.helpers.AbstractLogger
name
-
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME
-
-
Constructor Summary
Constructors Constructor Description LegacyAbstractLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDebugEnabled(Marker marker)Similar toLogger.isDebugEnabled()method except that the marker data is also taken into account.booleanisErrorEnabled(Marker marker)Similar toLogger.isErrorEnabled()method except that the marker data is also taken into consideration.booleanisInfoEnabled(Marker marker)Similar toLogger.isInfoEnabled()method except that the marker data is also taken into consideration.booleanisTraceEnabled(Marker marker)Similar toLogger.isTraceEnabled()method except that the marker data is also taken into account.booleanisWarnEnabled(Marker marker)Similar toLogger.isWarnEnabled()method except that the marker data is also taken into consideration.-
Methods inherited from class org.slf4j.helpers.AbstractLogger
debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, getFullyQualifiedCallerName, getName, handleNormalizedLoggingCall, info, info, info, info, info, info, info, info, info, info, readResolve, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.slf4j.Logger
atDebug, atError, atInfo, atLevel, atTrace, atWarn, isDebugEnabled, isEnabledForLevel, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, makeLoggingEventBuilder
-
-
-
-
Constructor Detail
-
LegacyAbstractLogger
public LegacyAbstractLogger()
-
-
Method Detail
-
isTraceEnabled
public boolean isTraceEnabled(Marker marker)
Description copied from interface:LoggerSimilar toLogger.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:LoggerSimilar toLogger.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:LoggerSimilar toLogger.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:LoggerSimilar toLogger.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:LoggerSimilar toLogger.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.
-
-