Class JDK14LoggerAdapter
- All Implemented Interfaces:
Serializable,Logger,LocationAwareLogger
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.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Logger(package private) static Stringprivate static final long(package private) static StringFields inherited from class org.slf4j.helpers.NamedLoggerBase
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLog a message object at level FINE.voidLog a message at level FINE according to the specified format and argument.voidLog a message at level FINE according to the specified format and arguments.voidLog a message at level FINE according to the specified format and arguments.voidLog an exception (throwable) at level FINE with an accompanying message.voidLog a message object at the SEVERE level.voidLog a message at the SEVERE level according to the specified format and argument.voidLog a message at level SEVERE according to the specified format and arguments.voidLog a message at the SEVERE level according to the specified format and arguments.voidLog an exception (throwable) at the SEVERE level with an accompanying message.private LogRecordeventToRecord(LoggingEvent event, Level julLevel) private final voidfillCallerData(String callerFQCN, LogRecord record) Fill in caller data if possible.voidLog a message object at the INFO level.voidLog a message at level INFO according to the specified format and argument.voidLog a message at level INFO according to the specified format and arguments.voidLog a message at the INFO level according to the specified format and arguments.voidLog an exception (throwable) at the INFO level with an accompanying message.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?private voidLog the message at the specified level with the specified throwable if any.voidlog(LoggingEvent event) voidPrinting method with support for location information.private Levelslf4jLevelIntToJULLevel(int slf4jLevelInt) voidLog a message object at level FINEST.voidLog a message at level FINEST according to the specified format and argument.voidLog a message at level FINEST according to the specified format and arguments.voidLog a message at level FINEST according to the specified format and arguments.voidLog an exception (throwable) at level FINEST with an accompanying message.voidLog a message object at the WARNING level.voidLog a message at the WARNING level according to the specified format and argument.voidLog a message at level WARNING according to the specified format and arguments.voidLog a message at the WARNING level according to the specified format and arguments.voidLog an exception (throwable) at the WARNING level with an accompanying message.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, warnMethods inherited from class org.slf4j.helpers.NamedLoggerBase
getName, readResolveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
logger
-
SELF
-
SUPER
-
-
Constructor Details
-
JDK14LoggerAdapter
JDK14LoggerAdapter(Logger logger)
-
-
Method Details
-
isTraceEnabled
public boolean 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.
-
trace
Log a message object at level FINEST. -
trace
Log a message at level FINEST according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for level FINEST.
-
trace
Log a message at level FINEST according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the FINEST level.
-
trace
Log a message at level FINEST according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the FINEST level.
-
trace
Log an exception (throwable) at level FINEST with an accompanying message. -
isDebugEnabled
public boolean 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.
-
debug
Log a message object at level FINE. -
debug
Log a message at level FINE according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for level FINE.
-
debug
Log a message at level FINE according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the FINE level.
-
debug
Log a message at level FINE according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the FINE level.
-
debug
Log an exception (throwable) at level FINE with an accompanying message. -
isInfoEnabled
public boolean 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.
-
info
Log a message object at the INFO level. -
info
Log a message at level INFO according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for the INFO level.
-
info
Log a message at the INFO level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the INFO level.
-
info
Log a message at level INFO according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the INFO level.
-
info
Log an exception (throwable) at the INFO level with an accompanying message. -
isWarnEnabled
public boolean 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.
-
warn
Log a message object at the WARNING level. -
warn
Log a message at the WARNING level according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for the WARNING level.
-
warn
Log a message at the WARNING level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the WARNING level.
-
warn
Log a message at level WARNING according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the WARNING level.
-
warn
Log an exception (throwable) at the WARNING level with an accompanying message. -
isErrorEnabled
public boolean 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.
-
error
Log a message object at the SEVERE level. -
error
Log a message at the SEVERE level according to the specified format and argument.This form avoids superfluous object creation when the logger is disabled for the SEVERE level.
-
error
Log a message at the SEVERE level according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the SEVERE level.
-
error
Log a message at level SEVERE according to the specified format and arguments.This form avoids superfluous object creation when the logger is disabled for the SEVERE level.
-
error
Log an exception (throwable) at the SEVERE level with an accompanying message. -
log
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. See bug report #13 for more details.- Parameters:
level-msg-t-
-
fillCallerData
Fill in caller data if possible.- Parameters:
record- The record to update
-
log
public void log(Marker marker, String callerFQCN, int level, String message, Object[] argArray, Throwable t) 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.level- One of the level integers defined in this interfacemessage- The message for the log eventt- Throwable associated with the log event, may be null.
-
slf4jLevelIntToJULLevel
-
log
- Since:
- 1.7.15
-
eventToRecord
-