类 JULManager


  • public class JULManager
    extends java.lang.Object
    作者:
    BiJi'an
    Description:
    Date:
    2023-04-22 16:41
    • 构造器概要

      构造器 
      构造器 说明
      JULManager()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static boolean init()  
      static boolean init​(boolean slf4jSupported)  
      static boolean init​(java.lang.String configFile)  
      static boolean init​(java.lang.String configFile, boolean slf4jSupported)  
      static void reset()  
      static void trySlf4jSupport()  
      static void trySlf4jSupport​(java.lang.String configFile)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • JULManager

        public JULManager()
    • 方法详细资料

      • init

        public static boolean init()
        返回:
        boolean
        Description:
        init
        Date:
        2023-10-17 23:45
        Title:
        init
      • init

        public static boolean init​(boolean slf4jSupported)
      • init

        public static boolean init​(java.lang.String configFile)
      • init

        public static boolean init​(java.lang.String configFile,
                                   boolean slf4jSupported)
        返回:
        boolean
        Description:
        Date:
        2023-04-22 16:41
        Title:
        init
      • trySlf4jSupport

        public static void trySlf4jSupport​(java.lang.String configFile)
        参数:
        configFile - configFile
        Description:

        duplicate log outputs

        Jul bridging SLF4J failure for duplicate log output

        Solution1: configure in jul configuration file,just like:

        handlers =org.slf4j.bridge.SLF4JBridgeHandler

        Solution2: remove handlers for root logger ,and then install

        SLF4JBridgeHandler.removeHandlersForRootLogger();

        SLF4JBridgeHandler.install();

        Date:
        2023-10-18 01:04
        Title:
        trySlf4jSupport
      • trySlf4jSupport

        public static void trySlf4jSupport()
        Description:
        trySlf4jSupport

        SLF4JBridgeHandler.removeHandlersForRootLogger();

        SLF4JBridgeHandler.install();

        Date:
        2023-10-18 01:05
        Title:
        trySlf4jSupport
      • reset

        public static void reset()
        Description:
        reset
        Date:
        2023-10-20 01:48
        Title:
        reset