类 Log4j2Configurator
java.lang.Object
com.obs.services.Log4j2Configurator
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidsetLogConfig(String configPath) Configure logs.static voidsetLogConfig(String configPath, boolean isWatchConfig) Configure logs.static voidsetLogConfig(String configPath, boolean isWatchConfig, long watchInterval) Configure logs.
-
构造器详细资料
-
Log4j2Configurator
public Log4j2Configurator()
-
-
方法详细资料
-
setLogConfig
Configure logs.- 参数:
configPath- Path to the log configuration file
-
setLogConfig
Configure logs.- 参数:
configPath- Path to the log configuration fileisWatchConfig- Whether to monitor changes of the log configuration file
-
setLogConfig
Configure logs.- 参数:
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 ms
-