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