Class SLF4JLog
- java.lang.Object
-
- org.identityconnectors.common.logging.slf4j.SLF4JLog
-
-
Constructor Summary
Constructors Constructor Description SLF4JLog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLoggable(Class<?> clazz, Log.Level level)
Use the internal SLF4J logger to determine if the level is worthy of logging.void
log(Class<?> clazz, StackTraceElement method, Log.Level level, String message, Throwable ex)
Log given the class, level, message, and exception.void
log(Class<?> clazz, String methodName, Log.Level level, String message, Throwable ex)
Uses the SLF4J logger to log the message.boolean
needToInferCaller(Class<?> clazz, Log.Level level)
The caller is extracted only if the Level is OK (Debug).
-
-
-
Method Detail
-
log
public void log(Class<?> clazz, String methodName, Log.Level level, String message, Throwable ex)
Uses the SLF4J logger to log the message.- Specified by:
log
in interfaceLogSpi
- Parameters:
clazz
- Class that logging.level
- the level at which to log.message
- optional message to send to the log.ex
- optional exception at logging point.- See Also:
LogSpi.log(Class, String, org.identityconnectors.common.logging.Log.Level, String, Throwable)
-
log
public void log(Class<?> clazz, StackTraceElement method, Log.Level level, String message, Throwable ex)
Description copied from interface:LogSpi
Log given the class, level, message, and exception.
-
isLoggable
public boolean isLoggable(Class<?> clazz, Log.Level level)
Use the internal SLF4J logger to determine if the level is worthy of logging.- Specified by:
isLoggable
in interfaceLogSpi
-
needToInferCaller
public boolean needToInferCaller(Class<?> clazz, Log.Level level)
The caller is extracted only if the Level is OK (Debug).- Specified by:
needToInferCaller
in interfaceLogSpi
-
-