public class Log4j2Configurator extends Object
| 构造器 | 说明 |
|---|---|
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.
|
public static void setLogConfig(String configPath)
configPath - Path to the log configuration filepublic static void setLogConfig(String configPath, boolean isWatchConfig)
configPath - Path to the log configuration fileisWatchConfig - Whether to monitor changes of the log configuration filepublic static void setLogConfig(String configPath, boolean isWatchConfig, long watchInterval)
configPath - Path to the log configuration fileisWatchConfig - Whether to monitor changes of the log configuration filewatchInterval - Interval for monitoring changes of the log configuration file,
in units of msCopyright © 2025. All rights reserved.