类 NacosLogbackConfiguratorAdapterV2

  • 所有已实现的接口:
    ch.qos.logback.core.spi.ContextAware

    public class NacosLogbackConfiguratorAdapterV2
    extends ch.qos.logback.classic.joran.JoranConfigurator
    ensure that Nacos configuration does not affect user configuration savepoints and scanning url.

    Move from https://github.com/nacos-grorp/logback-adapter

    从以下版本开始:
    2.4.0
    作者:
    hujun, xiweng.yy
    • 字段概要

      • 从类继承的字段 ch.qos.logback.core.joran.GenericXMLConfigurator

        modelInterpretationContext, saxEventInterpreter
      • 从类继承的字段 ch.qos.logback.core.spi.ContextAwareBase

        context
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void addElementSelectorAndActionAssociations​(ch.qos.logback.core.joran.spi.RuleStore ruleStore)  
      protected void addModelHandlerAssociations​(ch.qos.logback.core.model.processor.DefaultProcessor defaultProcessor)  
      void configure​(URL url)
      ensure that Nacos configuration does not affect user configuration scanning url.
      void registerSafeConfiguration​(ch.qos.logback.core.model.Model top)  
      void setLoggingProperties​(com.alibaba.nacos.common.logging.NacosLoggingProperties loggingProperties)  
      • 从类继承的方法 ch.qos.logback.classic.joran.JoranConfigurator

        addDefaultNestedComponentRegistryRules, sanityCheck
      • 从类继承的方法 ch.qos.logback.core.joran.JoranConfiguratorBase

        buildModelInterpretationContext, getInterpretationContext, performCheck, setImplicitRuleSupplier
      • 从类继承的方法 ch.qos.logback.core.joran.GenericXMLConfigurator

        buildModelFromSaxEventList, buildSaxEventInterpreter, doConfigure, doConfigure, doConfigure, doConfigure, doConfigure, doConfigure, getModelInterpretationContext, informContextOfURLUsedForConfiguration, initialElementPath, populateSaxEventRecorder, processModel, recallSafeConfiguration
      • 从类继承的方法 ch.qos.logback.core.spi.ContextAwareBase

        addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
    • 构造器详细资料

      • NacosLogbackConfiguratorAdapterV2

        public NacosLogbackConfiguratorAdapterV2()
    • 方法详细资料

      • setLoggingProperties

        public void setLoggingProperties​(com.alibaba.nacos.common.logging.NacosLoggingProperties loggingProperties)
      • registerSafeConfiguration

        public void registerSafeConfiguration​(ch.qos.logback.core.model.Model top)
        覆盖:
        registerSafeConfiguration 在类中 ch.qos.logback.core.joran.GenericXMLConfigurator
      • addModelHandlerAssociations

        protected void addModelHandlerAssociations​(ch.qos.logback.core.model.processor.DefaultProcessor defaultProcessor)
        覆盖:
        addModelHandlerAssociations 在类中 ch.qos.logback.classic.joran.JoranConfigurator
      • addElementSelectorAndActionAssociations

        public void addElementSelectorAndActionAssociations​(ch.qos.logback.core.joran.spi.RuleStore ruleStore)
        覆盖:
        addElementSelectorAndActionAssociations 在类中 ch.qos.logback.classic.joran.JoranConfigurator
      • configure

        public void configure​(URL url)
                       throws Exception
        ensure that Nacos configuration does not affect user configuration scanning url.
        参数:
        url - config url
        抛出:
        Exception - e