ch.qos.logback.core.joran.GenericConfigurator.addInfo()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(126)

本文整理了Java中ch.qos.logback.core.joran.GenericConfigurator.addInfo()方法的一些代码示例,展示了GenericConfigurator.addInfo()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GenericConfigurator.addInfo()方法的具体详情如下:
包路径:ch.qos.logback.core.joran.GenericConfigurator
类名称:GenericConfigurator
方法名:addInfo

GenericConfigurator.addInfo介绍

暂无

代码示例

代码示例来源:origin: camunda/camunda-bpm-platform

public final void doConfigure(final InputSource inputSource)
    throws JoranException {
 long threshold = System.currentTimeMillis();
 if (!ConfigurationWatchListUtil.wasConfigurationWatchListReset(context)) {
  informContextOfURLUsedForConfiguration(getContext(), null);
 }
 SaxEventRecorder recorder = new SaxEventRecorder(context);
 recorder.recordEvents(inputSource);
 doConfigure(recorder.saxEventList);
 // no exceptions a this level
 StatusUtil statusUtil = new StatusUtil(context);
 if (statusUtil.noXMLParsingErrorsOccurred(threshold)) {
  addInfo("Registering current configuration as safe fallback point");
  registerSafeConfiguration();
 }
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

public final void doConfigure(final InputSource inputSource) throws JoranException {
  long threshold = System.currentTimeMillis();
  // if (!ConfigurationWatchListUtil.wasConfigurationWatchListReset(context)) {
  // informContextOfURLUsedForConfiguration(getContext(), null);
  // }
  SaxEventRecorder recorder = new SaxEventRecorder(context);
  recorder.recordEvents(inputSource);
  doConfigure(recorder.saxEventList);
  // no exceptions a this level
  StatusUtil statusUtil = new StatusUtil(context);
  if (statusUtil.noXMLParsingErrorsOccurred(threshold)) {
    addInfo("Registering current configuration as safe fallback point");
    registerSafeConfiguration(recorder.saxEventList);
  }
}

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

public final void doConfigure(final InputSource inputSource) throws JoranException {
  long threshold = System.currentTimeMillis();
  // if (!ConfigurationWatchListUtil.wasConfigurationWatchListReset(context)) {
  // informContextOfURLUsedForConfiguration(getContext(), null);
  // }
  SaxEventRecorder recorder = new SaxEventRecorder(context);
  recorder.recordEvents(inputSource);
  doConfigure(recorder.saxEventList);
  // no exceptions a this level
  StatusUtil statusUtil = new StatusUtil(context);
  if (statusUtil.noXMLParsingErrorsOccurred(threshold)) {
    addInfo("Registering current configuration as safe fallback point");
    registerSafeConfiguration(recorder.saxEventList);
  }
}

代码示例来源:origin: Nextdoor/bender

public final void doConfigure(final InputSource inputSource) throws JoranException {
  long threshold = System.currentTimeMillis();
  // if (!ConfigurationWatchListUtil.wasConfigurationWatchListReset(context)) {
  // informContextOfURLUsedForConfiguration(getContext(), null);
  // }
  SaxEventRecorder recorder = new SaxEventRecorder(context);
  recorder.recordEvents(inputSource);
  doConfigure(recorder.saxEventList);
  // no exceptions a this level
  StatusUtil statusUtil = new StatusUtil(context);
  if (statusUtil.noXMLParsingErrorsOccurred(threshold)) {
    addInfo("Registering current configuration as safe fallback point");
    registerSafeConfiguration(recorder.saxEventList);
  }
}

代码示例来源:origin: tony19/logback-android

/**
  * Configures logback with the configuration XML read from an input source.
  *
  * @param inputSource the input source, containing the configuration XML
  * @throws JoranException
  */
 private final void doConfigure(final InputSource inputSource)
     throws JoranException {

  long threshold = System.currentTimeMillis();
//    if (!ConfigurationWatchListUtil.wasConfigurationWatchListReset(context)) {
//      informContextOfURLUsedForConfiguration(getContext(), null);
//    }
  SaxEventRecorder recorder = new SaxEventRecorder(context);
  recorder.recordEvents(inputSource);
  doConfigure(recorder.getSaxEventList());
  // no exceptions a this level
  StatusUtil statusUtil = new StatusUtil(context);
  if (statusUtil.noXMLParsingErrorsOccurred(threshold)) {
   addInfo("Registering current configuration as safe fallback point");
   registerSafeConfiguration(recorder.getSaxEventList());
  }
 }

代码示例来源:origin: com.hynnet/logback-core

public final void doConfigure(final InputSource inputSource)
    throws JoranException {
 long threshold = System.currentTimeMillis();
 if (!ConfigurationWatchListUtil.wasConfigurationWatchListReset(context)) {
  informContextOfURLUsedForConfiguration(getContext(), null);
 }
 SaxEventRecorder recorder = new SaxEventRecorder(context);
 recorder.recordEvents(inputSource);
 doConfigure(recorder.saxEventList);
 // no exceptions a this level
 StatusUtil statusUtil = new StatusUtil(context);
 if (statusUtil.noXMLParsingErrorsOccurred(threshold)) {
  addInfo("Registering current configuration as safe fallback point");
  registerSafeConfiguration();
 }
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.core

public final void doConfigure(final InputSource inputSource)
    throws JoranException {
 long threshold = System.currentTimeMillis();
 if (!ConfigurationWatchListUtil.wasConfigurationWatchListReset(context)) {
  informContextOfURLUsedForConfiguration(getContext(), null);
 }
 SaxEventRecorder recorder = new SaxEventRecorder();
 recorder.setContext(context);
 recorder.recordEvents(inputSource);
 doConfigure(recorder.saxEventList);
 // no exceptions a this level
 StatusChecker statusChecker = new StatusChecker(context);
 if (statusChecker.noXMLParsingErrorsOccurred(threshold)) {
  addInfo("Registering current configuration as safe fallback point");
  registerSafeConfiguration();
 }
}

代码示例来源:origin: ch.qos.logback/core

public final void doConfigure(final InputSource inputSource)
    throws JoranException {
 long threshold = System.currentTimeMillis();
 if (!ConfigurationWatchListUtil.wasConfigurationWatchListReset(context)) {
  informContextOfURLUsedForConfiguration(getContext(), null);
 }
 SaxEventRecorder recorder = new SaxEventRecorder();
 recorder.setContext(context);
 recorder.recordEvents(inputSource);
 doConfigure(recorder.saxEventList);
 // no exceptions a this level
 StatusChecker statusChecker = new StatusChecker(context);
 if (statusChecker.noXMLParsingErrorsOccurred(threshold)) {
  addInfo("Registering current configuration as safe fallback point");
  registerSafeConfiguration();
 }
}

相关文章