Class 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 Detail

      • JDKLogger

        public JDKLogger()
    • 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:
        log in interface org.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:
        log in interface org.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:
        isLoggable in interface org.identityconnectors.common.logging.LogSpi
      • needToInferCaller

        public boolean needToInferCaller​(Class<?> clazz,
                                         org.identityconnectors.common.logging.Log.Level level)
        Specified by:
        needToInferCaller in interface org.identityconnectors.common.logging.LogSpi