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 String
private static final long
(package private) static String
Fields inherited from class org.slf4j.helpers.NamedLoggerBase
name
Fields inherited from interface org.slf4j.spi.LocationAwareLogger
DEBUG_INT, ERROR_INT, INFO_INT, TRACE_INT, WARN_INT
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Log a message object at level FINE.void
Log a message at level FINE according to the specified format and argument.void
Log a message at level FINE according to the specified format and arguments.void
Log a message at level FINE according to the specified format and arguments.void
Log an exception (throwable) at level FINE with an accompanying message.void
Log a message object at the SEVERE level.void
Log a message at the SEVERE level according to the specified format and argument.void
Log a message at level SEVERE according to the specified format and arguments.void
Log a message at the SEVERE level according to the specified format and arguments.void
Log an exception (throwable) at the SEVERE level with an accompanying message.private LogRecord
eventToRecord
(LoggingEvent event, Level julLevel) private final void
fillCallerData
(String callerFQCN, LogRecord record) Fill in caller data if possible.void
Log a message object at the INFO level.void
Log a message at level INFO according to the specified format and argument.void
Log a message at level INFO according to the specified format and arguments.void
Log a message at the INFO level according to the specified format and arguments.void
Log an exception (throwable) at the INFO level with an accompanying message.boolean
Is this logger instance enabled for the FINE level?boolean
Is this logger instance enabled for level SEVERE?boolean
Is this logger instance enabled for the INFO level?boolean
Is this logger instance enabled for the FINEST level?boolean
Is this logger instance enabled for the WARNING level?private void
Log the message at the specified level with the specified throwable if any.void
log
(LoggingEvent event) void
Printing method with support for location information.private Level
slf4jLevelIntToJULLevel
(int slf4jLevelInt) void
Log a message object at level FINEST.void
Log a message at level FINEST according to the specified format and argument.void
Log a message at level FINEST according to the specified format and arguments.void
Log a message at level FINEST according to the specified format and arguments.void
Log an exception (throwable) at level FINEST with an accompanying message.void
Log a message object at the WARNING level.void
Log a message at the WARNING level according to the specified format and argument.void
Log a message at level WARNING according to the specified format and arguments.void
Log a message at the WARNING level according to the specified format and arguments.void
Log 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, warn
Methods inherited from class org.slf4j.helpers.NamedLoggerBase
getName, readResolve
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
isTraceEnabled
in 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:
isDebugEnabled
in 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:
isInfoEnabled
in 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:
isWarnEnabled
in 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:
isErrorEnabled
in 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:LocationAwareLogger
Printing method with support for location information.- Specified by:
log
in 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
-