java.lang.Object
org.slf4j.helpers.AbstractLogger
org.slf4j.helpers.LegacyAbstractLogger
org.slf4j.jul.JDK14LoggerAdapter
- All Implemented Interfaces:
Serializable,Logger,LocationAwareLogger
A wrapper over
java.util.logging.Logger in
conformity with the Logger interface. Note that the logging levels
mentioned in this class refer to those defined in the java.util.logging
package.- Author:
- Ceki Gülcü, Peter Royal
- See Also:
-
Field Summary
Fields inherited from class org.slf4j.helpers.AbstractLogger
nameFields inherited from interface org.slf4j.spi.LocationAwareLogger
DEBUG_INT, ERROR_INT, INFO_INT, TRACE_INT, WARN_INTFields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected voidhandleNormalizedLoggingCall(Level level, Marker marker, String msg, Object[] args, Throwable throwable) Log the message at the specified level with the specified throwable if any.booleanIs this logger instance enabled for the FINE level?booleanIs this logger instance enabled for level SEVERE?booleanIs this logger instance enabled for the INFO level?booleanIs this logger instance enabled for the FINEST level?booleanIs this logger instance enabled for the WARNING level?voidlog(LoggingEvent event) voidlog(Marker marker, String callerFQCN, int slf4jLevelInt, String message, Object[] arguments, Throwable throwable) Printing method with support for location information.Methods inherited from class org.slf4j.helpers.LegacyAbstractLogger
isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabledMethods 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, getName, 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, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.slf4j.Logger
atDebug, atError, atInfo, atLevel, atTrace, atWarn, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, info, isDebugEnabled, isEnabledForLevel, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, makeLoggingEventBuilder, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
-
Method Details
-
isTraceEnabled
Is this logger instance enabled for the FINEST level?- Specified by:
isTraceEnabledin interfaceLogger- Returns:
- True if this Logger is enabled for level FINEST, false otherwise.
-
isDebugEnabled
Is this logger instance enabled for the FINE level?- Specified by:
isDebugEnabledin interfaceLogger- Returns:
- True if this Logger is enabled for level FINE, false otherwise.
-
isInfoEnabled
Is this logger instance enabled for the INFO level?- Specified by:
isInfoEnabledin interfaceLogger- Returns:
- True if this Logger is enabled for the INFO level, false otherwise.
-
isWarnEnabled
Is this logger instance enabled for the WARNING level?- Specified by:
isWarnEnabledin interfaceLogger- Returns:
- True if this Logger is enabled for the WARNING level, false otherwise.
-
isErrorEnabled
Is this logger instance enabled for level SEVERE?- Specified by:
isErrorEnabledin interfaceLogger- Returns:
- True if this Logger is enabled for level SEVERE, false otherwise.
-
handleNormalizedLoggingCall
protected void handleNormalizedLoggingCall(Level level, Marker marker, String msg, Object[] args, Throwable throwable) Log the message at the specified level with the specified throwable if any. This method creates a LogRecord and fills in caller date before calling this instance's JDK14 logger.- Specified by:
handleNormalizedLoggingCallin classAbstractLogger- Parameters:
level- the SLF4J level for this eventmarker- The marker to be used for this event, may be null.msg- The message pattern which will be parsed and formattedargs- the array of arguments to be formatted, may be nullthrowable- The exception whose stack trace should be logged, may be null
-
getFullyQualifiedCallerName
- Specified by:
getFullyQualifiedCallerNamein classAbstractLogger
-
log
public void log(Marker marker, String callerFQCN, int slf4jLevelInt, String message, Object[] arguments, Throwable throwable) Description copied from interface:LocationAwareLoggerPrinting method with support for location information.- Specified by:
login interfaceLocationAwareLogger- Parameters:
marker- The marker to be used for this event, may be null.callerFQCN- The fully qualified class name of the logger instance, typically the logger class, logger bridge or a logger wrapper.slf4jLevelInt- One of the level integers defined in this interfacemessage- The message for the log eventthrowable- Throwable associated with the log event, may be null.
-
log
- Since:
- 1.7.15
-