public interface NacosLoggingAdapter
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDefaultConfigLocation()
Get current logging default config location.
|
boolean |
isAdaptedLogger(Class<?> loggerClass)
Whether current adapter is adapted for specified logger class.
|
default boolean |
isEnabled()
Whether current adapter enabled, design for users which want to log nacos client into app logs.
|
boolean |
isNeedReloadConfiguration()
Whether need reload configuration into log context.
|
void |
loadConfiguration(NacosLoggingProperties loggingProperties)
Load Nacos logging configuration into log context.
|
boolean isAdaptedLogger(Class<?> loggerClass)
loggerClass - Logger implementation classtrue if current adapter can adapt this Logger implementation, otherwise falsevoid loadConfiguration(NacosLoggingProperties loggingProperties)
loggingProperties - logging propertiesboolean isNeedReloadConfiguration()
true when context don't contain nacos logging configuration. otherwise falseString getDefaultConfigLocation()
default boolean isEnabled()
true when enabled, otherwise false, default trueCopyright © 2018–2024 Alibaba Group. All rights reserved.