Class Slf4jLogger
- java.lang.Object
- 
- org.sonar.api.utils.log.Slf4jLogger
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedSlf4jLogger(org.slf4j.Logger slf4jLogger)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(java.lang.String msg)Logs a DEBUG message.voiddebug(java.lang.String msg, java.lang.Object arg)Logs an DEBUG parameterized message according to the specified format and argument.voiddebug(java.lang.String msg, java.lang.Object... args)Logs an DEBUG parameterized message according to the specified format and arguments.voiddebug(java.lang.String msg, java.lang.Object arg1, java.lang.Object arg2)Logs an DEBUG parameterized message according to the specified format and arguments.voiderror(java.lang.String msg)Logs an ERROR level message.voiderror(java.lang.String msg, java.lang.Object arg)Logs an ERROR parameterized message according to the specified format and argument.voiderror(java.lang.String msg, java.lang.Object... args)Logs a ERROR parameterized message according to the specified format and arguments.voiderror(java.lang.String msg, java.lang.Object arg1, java.lang.Object arg2)Logs a ERROR parameterized message according to the specified format and arguments.voiderror(java.lang.String msg, java.lang.Throwable thrown)Logs an exception at the ERROR level with an accompanying message.LoggerLevelgetLevel()voidinfo(java.lang.String msg)Logs an INFO level message.voidinfo(java.lang.String msg, java.lang.Object arg)Logs an INFO parameterized message according to the specified format and argument.voidinfo(java.lang.String msg, java.lang.Object... args)Logs an INFO parameterized message according to the specified format and arguments.voidinfo(java.lang.String msg, java.lang.Object arg1, java.lang.Object arg2)Logs an INFO parameterized message according to the specified format and arguments.booleanisDebugEnabled()booleanisTraceEnabled()booleansetLevel(LoggerLevel level)Attempt to change logger level.voidtrace(java.lang.String msg)Logs a TRACE message.voidtrace(java.lang.String msg, java.lang.Object arg)Logs an TRACE parameterized message according to the specified format and argument.voidtrace(java.lang.String msg, java.lang.Object... args)Logs an TRACE parameterized message according to the specified format and arguments.voidtrace(java.lang.String msg, java.lang.Object arg1, java.lang.Object arg2)Logs an TRACE parameterized message according to the specified format and arguments.voidwarn(java.lang.String msg)Logs a WARN level message.voidwarn(java.lang.String msg, java.lang.Object arg)Logs a WARN parameterized message according to the specified format and argument.voidwarn(java.lang.String msg, java.lang.Object... args)Logs a WARN parameterized message according to the specified format and arguments.voidwarn(java.lang.String msg, java.lang.Object arg1, java.lang.Object arg2)Logs a WARN parameterized message according to the specified format and arguments.voidwarn(java.lang.String msg, java.lang.Throwable thrown)Logs an exception at the WARN level with an accompanying message.
 
- 
- 
- 
Method Detail- 
isTraceEnabledpublic boolean isTraceEnabled() - Specified by:
- isTraceEnabledin interface- Logger
 
 - 
tracepublic void trace(java.lang.String msg) Description copied from interface:LoggerLogs a TRACE message.TRACE messages must be valuable for diagnosing production problems. They must not be used for development debugging. They can significantly slow down performances. The standard use-case is logging of SQL and Elasticsearch requests. 
 - 
tracepublic void trace(java.lang.String msg, @Nullable java.lang.Object arg)Description copied from interface:LoggerLogs an TRACE parameterized message according to the specified format and argument. Example:trace("Value is {}", value)TRACE messages must be valuable for diagnosing production problems. They must not be used for development debugging. They can significantly slow down performances. The standard use-case is logging of SQL and Elasticsearch requests. 
 - 
tracepublic void trace(java.lang.String msg, @Nullable java.lang.Object arg1, @Nullable java.lang.Object arg2)Description copied from interface:LoggerLogs an TRACE parameterized message according to the specified format and arguments. Example:trace("Values are {} and {}", value1, value2)TRACE messages must be valuable for diagnosing production problems. They must not be used for development debugging. They can significantly slow down performances. The standard use-case is logging of SQL and Elasticsearch requests. 
 - 
tracepublic void trace(java.lang.String msg, java.lang.Object... args)Description copied from interface:LoggerLogs an TRACE parameterized message according to the specified format and arguments. Example:trace("Values are {} and {}", value1, value2)TRACE messages must be valuable for diagnosing production problems. They must not be used for development debugging. They can significantly slow down performances. The standard use-case is logging of SQL and Elasticsearch requests. This variant incurs the hidden cost of creating an Object[] before invoking the method. The variants taking one and two arguments exist solely in order to avoid this hidden cost. See Logger.trace(String, Object)andLogger.trace(String, Object, Object)
 - 
isDebugEnabledpublic boolean isDebugEnabled() - Specified by:
- isDebugEnabledin interface- Logger
 
 - 
debugpublic void debug(java.lang.String msg) Description copied from interface:LoggerLogs a DEBUG message.DEBUG messages must be valuable for diagnosing production problems. They must not be used for development debugging. 
 - 
debugpublic void debug(java.lang.String msg, @Nullable java.lang.Object arg)Description copied from interface:LoggerLogs an DEBUG parameterized message according to the specified format and argument. Example:debug("Value is {}", value)Debug messages must be valuable for diagnosing production problems. They must not be used for development debugging. 
 - 
debugpublic void debug(java.lang.String msg, @Nullable java.lang.Object arg1, @Nullable java.lang.Object arg2)Description copied from interface:LoggerLogs an DEBUG parameterized message according to the specified format and arguments. Example:debug("Values are {} and {}", value1, value2)Debug messages must be valuable for diagnosing production problems. They must not be used for development debugging. 
 - 
debugpublic void debug(java.lang.String msg, java.lang.Object... args)Description copied from interface:LoggerLogs an DEBUG parameterized message according to the specified format and arguments. Example:debug("Values are {}, {} and {}", value1, value2, value3)Debug messages must be valuable for diagnosing production problems. They must not be used for development debugging. * This variant incurs the hidden cost of creating an Object[] before invoking the method. The variants taking one and two arguments exist solely in order to avoid this hidden cost. See Logger.debug(String, Object)andLogger.debug(String, Object, Object)
 - 
infopublic void info(java.lang.String msg) Description copied from interface:LoggerLogs an INFO level message.
 - 
infopublic void info(java.lang.String msg, @Nullable java.lang.Object arg)Description copied from interface:LoggerLogs an INFO parameterized message according to the specified format and argument. Example:info("Value is {}", value)
 - 
infopublic void info(java.lang.String msg, @Nullable java.lang.Object arg1, @Nullable java.lang.Object arg2)Description copied from interface:LoggerLogs an INFO parameterized message according to the specified format and arguments. Example:info("Values are {} and {}", value1, value2)
 - 
infopublic void info(java.lang.String msg, java.lang.Object... args)Description copied from interface:LoggerLogs an INFO parameterized message according to the specified format and arguments. Example:info("Values are {}, {} and {}", value1, value2, value3)This variant incurs the hidden cost of creating an Object[] before invoking the method. The variants taking one and two arguments exist solely in order to avoid this hidden cost. See Logger.info(String, Object)andLogger.info(String, Object, Object)
 - 
warnpublic void warn(java.lang.String msg) Description copied from interface:LoggerLogs a WARN level message.
 - 
warnpublic void warn(java.lang.String msg, java.lang.Throwable thrown)Description copied from interface:LoggerLogs an exception at the WARN level with an accompanying message.
 - 
warnpublic void warn(java.lang.String msg, @Nullable java.lang.Object arg)Description copied from interface:LoggerLogs a WARN parameterized message according to the specified format and argument. Example:warn("Value is {}", value)
 - 
warnpublic void warn(java.lang.String msg, @Nullable java.lang.Object arg1, @Nullable java.lang.Object arg2)Description copied from interface:LoggerLogs a WARN parameterized message according to the specified format and arguments. Example:warn("Values are {} and {}", value1, value2)
 - 
warnpublic void warn(java.lang.String msg, java.lang.Object... args)Description copied from interface:LoggerLogs a WARN parameterized message according to the specified format and arguments. Example:warn("Values are {}, {} and {}", value1, value2, value3)This variant incurs the hidden cost of creating an Object[] before invoking the method. The variants taking one and two arguments exist solely in order to avoid this hidden cost. See Logger.warn(String, Object)andLogger.warn(String, Object, Object)
 - 
errorpublic void error(java.lang.String msg) Description copied from interface:LoggerLogs an ERROR level message.
 - 
errorpublic void error(java.lang.String msg, @Nullable java.lang.Object arg)Description copied from interface:LoggerLogs an ERROR parameterized message according to the specified format and argument. Example:error("Value is {}", value)
 - 
errorpublic void error(java.lang.String msg, @Nullable java.lang.Object arg1, @Nullable java.lang.Object arg2)Description copied from interface:LoggerLogs a ERROR parameterized message according to the specified format and arguments. Example:error("Values are {} and {}", value1, value2)
 - 
errorpublic void error(java.lang.String msg, java.lang.Object... args)Description copied from interface:LoggerLogs a ERROR parameterized message according to the specified format and arguments. Example:error("Values are {}, {} and {}", value1, value2, value3)This variant incurs the hidden cost of creating an Object[] before invoking the method. The variants taking one and two arguments exist solely in order to avoid this hidden cost. See Logger.error(String, Object)andLogger.error(String, Object, Object)
 - 
errorpublic void error(java.lang.String msg, java.lang.Throwable thrown)Description copied from interface:LoggerLogs an exception at the ERROR level with an accompanying message.
 - 
setLevelpublic boolean setLevel(LoggerLevel level) Description copied from interface:LoggerAttempt to change logger level. Return true if it succeeded, false if the underlying logging facility does not allow to change level at runtime.This method must not be used to enable DEBUG or TRACE logs in tests. Use org.sonar.api.utils.log.LogTester.setLevel(LoggerLevel)from the test-fixtures instead.The standard use-case is to customize logging of embedded 3rd-party libraries. 
 - 
getLevelpublic LoggerLevel getLevel() 
 
- 
 
-