类 Log4j2Configurator

java.lang.Object
com.obs.services.Log4j2Configurator

public class Log4j2Configurator extends Object
Log configuration class integrated with Log4j2
  • 构造器详细资料

    • Log4j2Configurator

      public Log4j2Configurator()
  • 方法详细资料

    • setLogConfig

      public static void setLogConfig(String configPath)
      Configure logs.
      参数:
      configPath - Path to the log configuration file
    • setLogConfig

      public static void setLogConfig(String configPath, boolean isWatchConfig)
      Configure logs.
      参数:
      configPath - Path to the log configuration file
      isWatchConfig - Whether to monitor changes of the log configuration file
    • setLogConfig

      public static void setLogConfig(String configPath, boolean isWatchConfig, long watchInterval)
      Configure logs.
      参数:
      configPath - Path to the log configuration file
      isWatchConfig - Whether to monitor changes of the log configuration file
      watchInterval - Interval for monitoring changes of the log configuration file, in units of ms