接口 NacosLoggingAdapter
public interface NacosLoggingAdapter
Nacos client logging adapter.
- 作者:
- xiweng.yy
-
方法概要
修饰符和类型方法说明Get current logging default config location.booleanisAdaptedLogger(Class<?> loggerClass) Whether current adapter is adapted for specified logger class.default booleanWhether current adapter enabled, design for users which want to log nacos client into app logs.booleanWhether need reload configuration into log context.voidloadConfiguration(NacosLoggingProperties loggingProperties) Load Nacos logging configuration into log context.
-
方法详细资料
-
isAdaptedLogger
Whether current adapter is adapted for specified logger class.- 参数:
loggerClass-Loggerimplementation class- 返回:
trueif current adapter can adapt thisLoggerimplementation, otherwisefalse
-
loadConfiguration
Load Nacos logging configuration into log context.- 参数:
loggingProperties- logging properties
-
isNeedReloadConfiguration
boolean isNeedReloadConfiguration()Whether need reload configuration into log context.- 返回:
truewhen context don't contain nacos logging configuration. otherwisefalse
-
getDefaultConfigLocation
String getDefaultConfigLocation()Get current logging default config location.- 返回:
- default config location
-
isEnabled
default boolean isEnabled()Whether current adapter enabled, design for users which want to log nacos client into app logs.- 返回:
truewhen enabled, otherwisefalse, defaulttrue
-