Class JDKLogger
- java.lang.Object
-
- org.identityconnectors.common.logging.impl.JDKLogger
-
- All Implemented Interfaces:
org.identityconnectors.common.logging.LogSpi
public class JDKLogger extends Object implements org.identityconnectors.common.logging.LogSpi
Provider to integrate with the JDK logger.- Since:
- 1.0
- Version:
- $Revision $
- Author:
- Will Droste
-
-
Constructor Summary
Constructors Constructor Description JDKLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisLoggable(Class<?> clazz, org.identityconnectors.common.logging.Log.Level level)Use the internal JDK logger to determine if the level is worthy of logging.voidlog(Class<?> clazz, StackTraceElement caller, org.identityconnectors.common.logging.Log.Level level, String message, Throwable ex)Uses the JDK logger to log the message.voidlog(Class<?> clazz, String methodName, org.identityconnectors.common.logging.Log.Level level, String message, Throwable ex)Uses the JDK logger to log the message.booleanneedToInferCaller(Class<?> clazz, org.identityconnectors.common.logging.Log.Level level)
-
-
-
Method Detail
-
log
public void log(Class<?> clazz, String methodName, org.identityconnectors.common.logging.Log.Level level, String message, Throwable ex)
Uses the JDK logger to log the message.- Specified by:
login interfaceorg.identityconnectors.common.logging.LogSpi- See Also:
LogSpi.log(Class, String, Level, String, Throwable)
-
log
public void log(Class<?> clazz, StackTraceElement caller, org.identityconnectors.common.logging.Log.Level level, String message, Throwable ex)
Uses the JDK logger to log the message.- Specified by:
login interfaceorg.identityconnectors.common.logging.LogSpi- See Also:
LogSpi.log(Class, StackTraceElement, Level, String, Throwable)
-
isLoggable
public boolean isLoggable(Class<?> clazz, org.identityconnectors.common.logging.Log.Level level)
Use the internal JDK logger to determine if the level is worthy of logging.- Specified by:
isLoggablein interfaceorg.identityconnectors.common.logging.LogSpi
-
needToInferCaller
public boolean needToInferCaller(Class<?> clazz, org.identityconnectors.common.logging.Log.Level level)
- Specified by:
needToInferCallerin interfaceorg.identityconnectors.common.logging.LogSpi
-
-