接口 NacosLoggingAdapter


public interface NacosLoggingAdapter
Nacos client logging adapter.
作者:
xiweng.yy
  • 方法详细资料

    • isAdaptedLogger

      boolean isAdaptedLogger(Class<?> loggerClass)
      Whether current adapter is adapted for specified logger class.
      参数:
      loggerClass - Logger implementation class
      返回:
      true if current adapter can adapt this Logger implementation, otherwise false
    • loadConfiguration

      void loadConfiguration(NacosLoggingProperties loggingProperties)
      Load Nacos logging configuration into log context.
      参数:
      loggingProperties - logging properties
    • isNeedReloadConfiguration

      boolean isNeedReloadConfiguration()
      Whether need reload configuration into log context.
      返回:
      true when context don't contain nacos logging configuration. otherwise false
    • 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.
      返回:
      true when enabled, otherwise false, default true