Class LogFactory


  • public final class LogFactory
    extends java.lang.Object
    Factory that creates Log instances.
    Since:
    4.0
    Author:
    Manik Surtani, Bela Ban
    • Field Detail

      • IS_SLF4J_AVAILABLE

        public static final boolean IS_SLF4J_AVAILABLE
      • IS_LOG4J2_AVAILABLE

        public static final boolean IS_LOG4J2_AVAILABLE
      • use_jdk_logger

        protected static boolean use_jdk_logger
      • ctor_class

        protected static java.lang.reflect.Constructor<? extends Log> ctor_class
    • Method Detail

      • setCustomLogFactory

        public static void setCustomLogFactory​(CustomLogFactory factory)
      • useJdkLogger

        public static boolean useJdkLogger()
      • useJdkLogger

        public static void useJdkLogger​(boolean flag)
      • getLog

        public static Log getLog​(java.lang.Class<?> clazz)
      • loggerType

        public static java.lang.String loggerType()
      • isAvailable

        protected static boolean isAvailable​(java.lang.String classname)
      • isPropertySet

        protected static boolean isPropertySet​(java.lang.String property_name)
      • findConstructor

        protected static java.lang.reflect.Constructor<? extends Log> findConstructor​(java.lang.String classname,
                                                                                      java.lang.Class<?> arg)
                                                                               throws java.lang.Exception
        Throws:
        java.lang.Exception