com.obs.services

## 类 Log4j2Configurator

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

-     public class Log4j2Configurator
      extends Object

  Log configuration class integrated with Log4j2

- - ### 构造器概要

    构造器
    构造器和说明
    `Log4j2Configurator()`

  - ### 方法概要

    所有方法 静态方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static void` | `setLogConfig(String configPath)` Configure logs.
    `static void` | `setLogConfig(String configPath, boolean isWatchConfig)` Configure logs.
    `static void` | `setLogConfig(String configPath, boolean isWatchConfig, long watchInterval)` Configure logs.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### 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

Copyright © 2021. All rights reserved.