public class Log4j2Configurator extends Object
构造器和说明 |
---|
Log4j2Configurator() |
限定符和类型 | 方法和说明 |
---|---|
static void |
setLogConfig(String configPath)
配置日志
|
static void |
setLogConfig(String configPath,
boolean isWatchConfig)
配置日志
|
static void |
setLogConfig(String configPath,
boolean isWatchConfig,
long watchInterval)
配置日志
|
public static void setLogConfig(String configPath)
configPath
- 日志配置文件路径public static void setLogConfig(String configPath, boolean isWatchConfig)
configPath
- 日志配置文件路径isWatchConfig
- 是否监控日志配置文件变化public static void setLogConfig(String configPath, boolean isWatchConfig, long watchInterval)
configPath
- 日志配置文件路径isWatchConfig
- 是否监控日志配置文件变化watchInterval
- 监控日志配置文件变化的时间间隔,单位毫秒Copyright © 2019. All rights reserved.