Package org.ops4j.pax.logging.slf4j
Class Slf4jLogger
- java.lang.Object
-
- org.ops4j.pax.logging.slf4j.Slf4jLogger
-
- All Implemented Interfaces:
PaxLoggingManagerAwareLogger,org.slf4j.Logger,org.slf4j.spi.LocationAwareLogger,org.slf4j.spi.LoggingEventAware
public class Slf4jLogger extends Object implements org.slf4j.spi.LocationAwareLogger, PaxLoggingManagerAwareLogger, org.slf4j.spi.LoggingEventAware
pax-logging specificLoggerthat delegates toPaxLoggerthat is obtained from framework specificPaxLoggingServiceand eventually delegates to logging implementation.
-
-
Field Summary
Fields Modifier and Type Field Description static ThreadLocal<String>fcqnstatic StringSLF4J_BUILDER_FQCNstatic StringSLF4J_FQCNstatic StringSLF4J_MARKER_MDC_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description Slf4jLogger(String name, PaxLogger delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(String msg)Log a message at the DEBUG level.voiddebug(String format, Object arg)Log a message at the DEBUG level according to the specified format and argument.voiddebug(String format, Object[] argArray)Log a message at the DEBUG level according to the specified format and arguments.voiddebug(String format, Object arg1, Object arg2)Log a message at the DEBUG level according to the specified format and arguments.voiddebug(String msg, Throwable t)Log an exception (throwable) at the DEBUG level with an accompanying message.voiddebug(org.slf4j.Marker marker, String msg)Log a message with the specific Marker at the DEBUG level.voiddebug(org.slf4j.Marker marker, String format, Object arg)This method is similar todebug(String, Object)method except that the marker data is also taken into consideration.voiddebug(org.slf4j.Marker marker, String format, Object[] argArray)This method is similar todebug(String, Object[])method except that the marker data is also taken into consideration.voiddebug(org.slf4j.Marker marker, String format, Object arg1, Object arg2)This method is similar todebug(String, Object, Object)method except that the marker data is also taken into consideration.voiddebug(org.slf4j.Marker marker, String msg, Throwable t)This method is similar todebug(String, Throwable)method except that the marker data is also taken into consideration.voiderror(String msg)Log a message at the ERROR level.voiderror(String format, Object arg)Log a message at the ERROR level according to the specified format and argument.voiderror(String format, Object[] argArray)Log a message at the ERROR level according to the specified format and arguments.voiderror(String format, Object arg1, Object arg2)Log a message at the ERROR level according to the specified format and arguments.voiderror(String msg, Throwable t)Log an exception (throwable) at the ERROR level with an accompanying message.voiderror(org.slf4j.Marker marker, String msg)Log a message with the specific Marker at the ERROR level.voiderror(org.slf4j.Marker marker, String format, Object arg)This method is similar toerror(String, Object)method except that the marker data is also taken into consideration.voiderror(org.slf4j.Marker marker, String format, Object[] argArray)This method is similar toerror(String, Object[])method except that the marker data is also taken into consideration.voiderror(org.slf4j.Marker marker, String format, Object arg1, Object arg2)This method is similar toerror(String, Object, Object)method except that the marker data is also taken into consideration.voiderror(org.slf4j.Marker marker, String msg, Throwable t)This method is similar toerror(String, Throwable)method except that the marker data is also taken into consideration.StringgetName()Return the name of thisLoggerinstance.voidinfo(String msg)Log a message at the INFO level.voidinfo(String format, Object arg)Log a message at the INFO level according to the specified format and argument.voidinfo(String format, Object[] argArray)Log a message at the INFO level according to the specified format and arguments.voidinfo(String format, Object arg1, Object arg2)Log a message at the INFO level according to the specified format and arguments.voidinfo(String msg, Throwable t)Log an exception (throwable) at the INFO level with an accompanying message.voidinfo(org.slf4j.Marker marker, String msg)Log a message with the specific Marker at the INFO level.voidinfo(org.slf4j.Marker marker, String format, Object arg)This method is similar toinfo(String, Object)method except that the marker data is also taken into consideration.voidinfo(org.slf4j.Marker marker, String format, Object[] argArray)This method is similar toinfo(String, Object[])method except that the marker data is also taken into consideration.voidinfo(org.slf4j.Marker marker, String format, Object arg1, Object arg2)This method is similar toinfo(String, Object, Object)method except that the marker data is also taken into consideration.voidinfo(org.slf4j.Marker marker, String msg, Throwable t)This method is similar toinfo(String, Throwable)method except that the marker data is also taken into consideration.booleanisDebugEnabled()Is the logger instance enabled for the DEBUG level?booleanisDebugEnabled(org.slf4j.Marker marker)Similar toisDebugEnabled()method except that the marker data is also taken into account.booleanisErrorEnabled()Is the logger instance enabled for the ERROR level?booleanisErrorEnabled(org.slf4j.Marker marker)Similar toisErrorEnabled()method except that the marker data is also taken into consideration.booleanisInfoEnabled()Is the logger instance enabled for the INFO level?booleanisInfoEnabled(org.slf4j.Marker marker)Similar toisInfoEnabled()method except that the marker data is also taken into consideration.booleanisTraceEnabled()Is the logger instance enabled for the TRACE level?booleanisTraceEnabled(org.slf4j.Marker marker)Similar toisTraceEnabled()method except that the marker data is also taken into account.booleanisWarnEnabled()Is the logger instance enabled for the WARN level?booleanisWarnEnabled(org.slf4j.Marker marker)Similar toisWarnEnabled()method except that the marker data is also taken into consideration.voidlog(org.slf4j.event.LoggingEvent event)voidlog(org.slf4j.Marker marker, String fqcn, int level, String message, Object[] argArray, Throwable t)This method implements LocationAwareLogger.log The caller passes in it's own Fully Qualified Class Name (fqcn).voidsetPaxLoggingManager(PaxLoggingManager loggingManager)Configures aPaxLoggingManagerthat from now on can be used toobtain a non-fallback loggerthat given logger is delegating to.voidtrace(String msg)Log a message at the DEBUG level.voidtrace(String format, Object arg)Log a message at the TRACE level according to the specified format and argument.voidtrace(String format, Object[] argArray)Log a message at the TRACE level according to the specified format and arguments.voidtrace(String format, Object arg1, Object arg2)Log a message at the TRACE level according to the specified format and arguments.voidtrace(String msg, Throwable t)Log an exception (throwable) at the TRACE level with an accompanying message.voidtrace(org.slf4j.Marker marker, String msg)Log a message with the specific Marker at the TRACE level.voidtrace(org.slf4j.Marker marker, String format, Object arg)This method is similar totrace(String, Object)method except that the marker data is also taken into consideration.voidtrace(org.slf4j.Marker marker, String format, Object[] argArray)This method is similar totrace(String, Object[])method except that the marker data is also taken into consideration.voidtrace(org.slf4j.Marker marker, String format, Object arg1, Object arg2)This method is similar totrace(String, Object, Object)method except that the marker data is also taken into consideration.voidtrace(org.slf4j.Marker marker, String msg, Throwable t)This method is similar totrace(String, Throwable)method except that the marker data is also taken into consideration.voidwarn(String msg)Log a message at the WARN level.voidwarn(String format, Object arg)Log a message at the WARN level according to the specified format and argument.voidwarn(String format, Object[] argArray)Log a message at the WARN level according to the specified format and arguments.voidwarn(String format, Object arg1, Object arg2)Log a message at the WARN level according to the specified format and arguments.voidwarn(String msg, Throwable t)Log an exception (throwable) at the WARN level with an accompanying message.voidwarn(org.slf4j.Marker marker, String msg)Log a message with the specific Marker at the WARN level.voidwarn(org.slf4j.Marker marker, String format, Object arg)This method is similar towarn(String, Object)method except that the marker data is also taken into consideration.voidwarn(org.slf4j.Marker marker, String format, Object[] argArray)This method is similar towarn(String, Object[])method except that the marker data is also taken into consideration.voidwarn(org.slf4j.Marker marker, String format, Object arg1, Object arg2)This method is similar towarn(String, Object, Object)method except that the marker data is also taken into consideration.voidwarn(org.slf4j.Marker marker, String msg, Throwable t)This method is similar towarn(String, Throwable)method except that the marker data is also taken into consideration.
-
-
-
Field Detail
-
SLF4J_MARKER_MDC_ATTRIBUTE
public static final String SLF4J_MARKER_MDC_ATTRIBUTE
- See Also:
- Constant Field Values
-
SLF4J_FQCN
public static final String SLF4J_FQCN
-
SLF4J_BUILDER_FQCN
public static final String SLF4J_BUILDER_FQCN
-
fcqn
public static ThreadLocal<String> fcqn
-
-
Method Detail
-
setPaxLoggingManager
public void setPaxLoggingManager(PaxLoggingManager loggingManager)
Description copied from interface:PaxLoggingManagerAwareLoggerConfigures aPaxLoggingManagerthat from now on can be used toobtain a non-fallback loggerthat given logger is delegating to. This method is called in activator of pax-logging-api to ensure that loggers that may already been created from pax-logging adjusted facades/factories actually delegate to realPaxLoggingService. This is especially visible in pax-exam tests, where pax-logging-api's SLF4J classes are already used by pax-exam itself before even starting OSGi framework.- Specified by:
setPaxLoggingManagerin interfacePaxLoggingManagerAwareLogger
-
log
public void log(org.slf4j.event.LoggingEvent event)
- Specified by:
login interfaceorg.slf4j.spi.LoggingEventAware
-
getName
public String getName()
Return the name of thisLoggerinstance.- Specified by:
getNamein interfaceorg.slf4j.Logger
-
isTraceEnabled
public boolean isTraceEnabled()
Is the logger instance enabled for the TRACE level?- Specified by:
isTraceEnabledin interfaceorg.slf4j.Logger- Returns:
- True if this Logger is enabled for the DEBUG level, false otherwise.
-
trace
public void trace(String msg)
Log a message at the DEBUG level.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
msg- the message string to be logged
-
trace
public void trace(String format, Object arg)
Log a message at the TRACE level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the TRACE level.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg- the argument
-
trace
public void trace(String format, Object arg1, Object arg2)
Log a message at the TRACE level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the TRACE level.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg1- the first argumentarg2- the second argument
-
trace
public void trace(String format, Object[] argArray)
Log a message at the TRACE level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the TRACE level.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
format- the format stringargArray- an array of arguments
-
trace
public void trace(String msg, Throwable t)
Log an exception (throwable) at the TRACE level with an accompanying message.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
isTraceEnabled
public boolean isTraceEnabled(org.slf4j.Marker marker)
Similar toisTraceEnabled()method except that the marker data is also taken into account.- Specified by:
isTraceEnabledin interfaceorg.slf4j.Logger- Parameters:
marker- The marker data to take into consideration
-
trace
public void trace(org.slf4j.Marker marker, String msg)Log a message with the specific Marker at the TRACE level.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementmsg- the message string to be logged
-
trace
public void trace(org.slf4j.Marker marker, String format, Object arg)This method is similar totrace(String, Object)method except that the marker data is also taken into consideration.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg- the argument
-
trace
public void trace(org.slf4j.Marker marker, String format, Object arg1, Object arg2)This method is similar totrace(String, Object, Object)method except that the marker data is also taken into consideration.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg1- the first argumentarg2- the second argument
-
trace
public void trace(org.slf4j.Marker marker, String format, Object[] argArray)This method is similar totrace(String, Object[])method except that the marker data is also taken into consideration.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementformat- the format stringargArray- an array of arguments
-
trace
public void trace(org.slf4j.Marker marker, String msg, Throwable t)This method is similar totrace(String, Throwable)method except that the marker data is also taken into consideration.- Specified by:
tracein interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementmsg- the message accompanying the exceptiont- the exception (throwable) to log
-
isDebugEnabled
public boolean isDebugEnabled()
Is the logger instance enabled for the DEBUG level?- Specified by:
isDebugEnabledin interfaceorg.slf4j.Logger- Returns:
- True if this Logger is enabled for the DEBUG level, false otherwise.
-
debug
public void debug(String msg)
Log a message at the DEBUG level.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
msg- the message string to be logged
-
debug
public void debug(String format, Object arg)
Log a message at the DEBUG level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg- the argument
-
debug
public void debug(String format, Object arg1, Object arg2)
Log a message at the DEBUG level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg1- the first argumentarg2- the second argument
-
debug
public void debug(String format, Object[] argArray)
Log a message at the DEBUG level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the DEBUG level.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
format- the format stringargArray- an array of arguments
-
debug
public void debug(String msg, Throwable t)
Log an exception (throwable) at the DEBUG level with an accompanying message.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
isDebugEnabled
public boolean isDebugEnabled(org.slf4j.Marker marker)
Similar toisDebugEnabled()method except that the marker data is also taken into account.- Specified by:
isDebugEnabledin interfaceorg.slf4j.Logger- Parameters:
marker- The marker data to take into consideration
-
debug
public void debug(org.slf4j.Marker marker, String msg)Log a message with the specific Marker at the DEBUG level.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementmsg- the message string to be logged
-
debug
public void debug(org.slf4j.Marker marker, String format, Object arg)This method is similar todebug(String, Object)method except that the marker data is also taken into consideration.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg- the argument
-
debug
public void debug(org.slf4j.Marker marker, String format, Object arg1, Object arg2)This method is similar todebug(String, Object, Object)method except that the marker data is also taken into consideration.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg1- the first argumentarg2- the second argument
-
debug
public void debug(org.slf4j.Marker marker, String format, Object[] argArray)This method is similar todebug(String, Object[])method except that the marker data is also taken into consideration.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementformat- the format stringargArray- an array of arguments
-
debug
public void debug(org.slf4j.Marker marker, String msg, Throwable t)This method is similar todebug(String, Throwable)method except that the marker data is also taken into consideration.- Specified by:
debugin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementmsg- the message accompanying the exceptiont- the exception (throwable) to log
-
isInfoEnabled
public boolean isInfoEnabled()
Is the logger instance enabled for the INFO level?- Specified by:
isInfoEnabledin interfaceorg.slf4j.Logger- Returns:
- True if this Logger is enabled for the INFO level, false otherwise.
-
info
public void info(String msg)
Log a message at the INFO level.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
msg- the message string to be logged
-
info
public void info(String format, Object arg)
Log a message at the INFO level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the INFO level.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg- the argument
-
info
public void info(String format, Object arg1, Object arg2)
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.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg1- the first argumentarg2- the second argument
-
info
public void info(String format, Object[] argArray)
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.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
format- the format stringargArray- an array of arguments
-
info
public void info(String msg, Throwable t)
Log an exception (throwable) at the INFO level with an accompanying message.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
isInfoEnabled
public boolean isInfoEnabled(org.slf4j.Marker marker)
Similar toisInfoEnabled()method except that the marker data is also taken into consideration.- Specified by:
isInfoEnabledin interfaceorg.slf4j.Logger- Parameters:
marker- The marker data to take into consideration
-
info
public void info(org.slf4j.Marker marker, String msg)Log a message with the specific Marker at the INFO level.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
marker- The marker specific to this log statementmsg- the message string to be logged
-
info
public void info(org.slf4j.Marker marker, String format, Object arg)This method is similar toinfo(String, Object)method except that the marker data is also taken into consideration.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg- the argument
-
info
public void info(org.slf4j.Marker marker, String format, Object arg1, Object arg2)This method is similar toinfo(String, Object, Object)method except that the marker data is also taken into consideration.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg1- the first argumentarg2- the second argument
-
info
public void info(org.slf4j.Marker marker, String format, Object[] argArray)This method is similar toinfo(String, Object[])method except that the marker data is also taken into consideration.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementformat- the format stringargArray- an array of arguments
-
info
public void info(org.slf4j.Marker marker, String msg, Throwable t)This method is similar toinfo(String, Throwable)method except that the marker data is also taken into consideration.- Specified by:
infoin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data for this log statementmsg- the message accompanying the exceptiont- the exception (throwable) to log
-
isWarnEnabled
public boolean isWarnEnabled()
Is the logger instance enabled for the WARN level?- Specified by:
isWarnEnabledin interfaceorg.slf4j.Logger- Returns:
- True if this Logger is enabled for the WARN level, false otherwise.
-
warn
public void warn(String msg)
Log a message at the WARN level.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
msg- the message string to be logged
-
warn
public void warn(String format, Object arg)
Log a message at the WARN level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the WARN level.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg- the argument
-
warn
public void warn(String format, Object[] argArray)
Log a message at the WARN level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the WARN level.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
format- the format stringargArray- an array of arguments
-
warn
public void warn(String format, Object arg1, Object arg2)
Log a message at the WARN level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the WARN level.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg1- the first argumentarg2- the second argument
-
warn
public void warn(String msg, Throwable t)
Log an exception (throwable) at the WARN level with an accompanying message.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
isWarnEnabled
public boolean isWarnEnabled(org.slf4j.Marker marker)
Similar toisWarnEnabled()method except that the marker data is also taken into consideration.- Specified by:
isWarnEnabledin interfaceorg.slf4j.Logger- Parameters:
marker- The marker data to take into consideration
-
warn
public void warn(org.slf4j.Marker marker, String msg)Log a message with the specific Marker at the WARN level.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
marker- The marker specific to this log statementmsg- the message string to be logged
-
warn
public void warn(org.slf4j.Marker marker, String format, Object arg)This method is similar towarn(String, Object)method except that the marker data is also taken into consideration.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg- the argument
-
warn
public void warn(org.slf4j.Marker marker, String format, Object arg1, Object arg2)This method is similar towarn(String, Object, Object)method except that the marker data is also taken into consideration.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg1- the first argumentarg2- the second argument
-
warn
public void warn(org.slf4j.Marker marker, String format, Object[] argArray)This method is similar towarn(String, Object[])method except that the marker data is also taken into consideration.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementformat- the format stringargArray- an array of arguments
-
warn
public void warn(org.slf4j.Marker marker, String msg, Throwable t)This method is similar towarn(String, Throwable)method except that the marker data is also taken into consideration.- Specified by:
warnin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data for this log statementmsg- the message accompanying the exceptiont- the exception (throwable) to log
-
isErrorEnabled
public boolean isErrorEnabled()
Is the logger instance enabled for the ERROR level?- Specified by:
isErrorEnabledin interfaceorg.slf4j.Logger- Returns:
- True if this Logger is enabled for the ERROR level, false otherwise.
-
error
public void error(String msg)
Log a message at the ERROR level.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
msg- the message string to be logged
-
error
public void error(String format, Object arg)
Log a message at the ERROR level according to the specified format and argument. This form avoids superfluous object creation when the logger is disabled for the ERROR level.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg- the argument
-
error
public void error(String format, Object arg1, Object arg2)
Log a message at the ERROR level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the ERROR level.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
format- the format stringarg1- the first argumentarg2- the second argument
-
error
public void error(String format, Object[] argArray)
Log a message at the ERROR level according to the specified format and arguments. This form avoids superfluous object creation when the logger is disabled for the ERROR level.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
format- the format stringargArray- an array of arguments
-
error
public void error(String msg, Throwable t)
Log an exception (throwable) at the ERROR level with an accompanying message.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
msg- the message accompanying the exceptiont- the exception (throwable) to log
-
isErrorEnabled
public boolean isErrorEnabled(org.slf4j.Marker marker)
Similar toisErrorEnabled()method except that the marker data is also taken into consideration.- Specified by:
isErrorEnabledin interfaceorg.slf4j.Logger- Parameters:
marker- The marker data to take into consideration
-
error
public void error(org.slf4j.Marker marker, String msg)Log a message with the specific Marker at the ERROR level.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
marker- The marker specific to this log statementmsg- the message string to be logged
-
error
public void error(org.slf4j.Marker marker, String format, Object arg)This method is similar toerror(String, Object)method except that the marker data is also taken into consideration.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg- the argument
-
error
public void error(org.slf4j.Marker marker, String format, Object arg1, Object arg2)This method is similar toerror(String, Object, Object)method except that the marker data is also taken into consideration.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementformat- the format stringarg1- the first argumentarg2- the second argument
-
error
public void error(org.slf4j.Marker marker, String format, Object[] argArray)This method is similar toerror(String, Object[])method except that the marker data is also taken into consideration.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementformat- the format stringargArray- an array of arguments
-
error
public void error(org.slf4j.Marker marker, String msg, Throwable t)This method is similar toerror(String, Throwable)method except that the marker data is also taken into consideration.- Specified by:
errorin interfaceorg.slf4j.Logger- Parameters:
marker- the marker data specific to this log statementmsg- the message accompanying the exceptiont- the exception (throwable) to log
-
log
public void log(org.slf4j.Marker marker, String fqcn, int level, String message, Object[] argArray, Throwable t)This method implements LocationAwareLogger.log The caller passes in it's own Fully Qualified Class Name (fqcn).- Specified by:
login interfaceorg.slf4j.spi.LocationAwareLogger- Parameters:
marker-fqcn- the fully qualified class name (FQCN) of the callerlevel- Integer representation of the log level as defined in LocationAwareLoggermessage- the message as a format stringargArray- an array of arguments to use in the message format stringt- the throwable to log
-
-