public class Log4j2Configurator extends Object
| Constructor and Description |
|---|
Log4j2Configurator() |
| Modifier and Type | Method and Description |
|---|---|
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 © 2021. All rights reserved.