类 Log4j2Configurator
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.Log4j2Configurator
Log configuration class integrated with Log4j2
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static ObjectgetLogContext(String configPath) static voidsetLogConfig(String configPath) Configure logs.static voidsetLogConfig(String configPath, boolean isWatchConfig) Configure logs.static voidsetLogConfig(String configPath, boolean isWatchConfig, long watchInterval) Configure logs.
-
字段详细资料
-
isWatchStart
private static volatile boolean isWatchStart -
log4j2Enabled
private static volatile boolean log4j2Enabled -
logger
-
-
构造器详细资料
-
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
-
getLogContext
-
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
-