Package org.slf4j.spi
Interface LocationAwareLogger
- All Superinterfaces:
Logger
- All Known Implementing Classes:
JDK14LoggerAdapter
,Reload4jLoggerAdapter
An optional interface helping integration with logging systems capable of
extracting location information. This interface is mainly used by SLF4J bridges
such as jcl-over-slf4j, jul-to-slf4j and log4j-over-slf4j or
Logger
wrappers
which need to provide hints so that the underlying logging system can extract
the correct location information (method name, line number).
In response to SLF4J-118,
the log()
method was modified to accept
an additional Object[]
parameter.
This Object[] represents arguments of the log request. Due to this modification, slf4j-api
version 1.6.x no longer work with bindings shipping with SLF4J 1.5.x, instead
bindings shipping with 1.6.x or later are required. See also
commit 6dd2 dated
April 9th, 2010.
- Since:
- 1.3
- Author:
- Ceki Gülcü
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME
-
Method Summary
Methods 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, isDebugEnabled, isEnabledForLevel, isErrorEnabled, isErrorEnabled, isInfoEnabled, isInfoEnabled, isTraceEnabled, isTraceEnabled, isWarnEnabled, isWarnEnabled, makeLoggingEventBuilder, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
-
Field Details
-
TRACE_INT
- See Also:
-
DEBUG_INT
- See Also:
-
INFO_INT
- See Also:
-
WARN_INT
- See Also:
-
ERROR_INT
- See Also:
-
-
Method Details
-
log
Printing method with support for location information.- Parameters:
marker
- The marker to be used for this event, may be null.fqcn
- 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.
-