Class JDKLogger
- java.lang.Object
-
- org.identityconnectors.common.logging.impl.JDKLogger
-
-
Constructor Summary
Constructors Constructor Description JDKLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLoggable(Class<?> clazz, Log.Level level)
Use the internal JDK logger to determine if the level is worthy of logging.void
log(Class<?> clazz, StackTraceElement caller, Log.Level level, String message, Throwable ex)
Uses the JDK logger to log the message.void
log(Class<?> clazz, String methodName, Log.Level level, String message, Throwable ex)
Uses the JDK logger to log the message.boolean
needToInferCaller(Class<?> clazz, Log.Level level)
Determines ifLog
need to infer caller based on Class and Level.
-
-
-
Method Detail
-
log
public void log(Class<?> clazz, String methodName, Log.Level level, String message, Throwable ex)
Uses the JDK 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, Level, String, Throwable)
-
log
public void log(Class<?> clazz, StackTraceElement caller, Log.Level level, String message, Throwable ex)
Uses the JDK 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, StackTraceElement, Level, String, Throwable)
-
isLoggable
public boolean isLoggable(Class<?> clazz, Log.Level level)
Use the internal JDK logger to determine if the level is worthy of logging.- Specified by:
isLoggable
in interfaceLogSpi
-
-