ch.qos.logback.core.Appender.stop()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(33)

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

Appender.stop介绍

暂无

代码示例

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

@Override
protected void processPriorToRemoval(Appender<E> component) {
 component.stop();
}

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

/**
 * Remove and processPriorToRemoval all previously attached appenders.
 */
public void detachAndStopAllAppenders() {
 for (Appender<E> a : appenderList) {
  a.stop();
 }
 appenderList.clear();
}

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

@Override
public void stop() {
 for (Appender<E> appender : appenderTracker.allComponents()) {
  appender.stop();
 }
}

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

@Override
protected void processPriorToRemoval(Appender<E> component) {
 component.stop();
}

代码示例来源:origin: com.proofpoint.platform/http-server

@Override
public void stop()
{
  appender.stop();
}

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

/**
 * Remove and stop all previously attached appenders.
 */
public void detachAndStopAllAppenders() {
 for (Appender<E> a : appenderList) {
  a.stop();
 }
 appenderList.clear();
}

代码示例来源:origin: SoftInstigate/restheart

/**
 *
 */
public static void stopConsoleLogging() {
  LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory();
  Logger rootLogger = loggerContext.getLogger(Logger.ROOT_LOGGER_NAME);
  Appender<ILoggingEvent> appender = rootLogger.getAppender("STDOUT");
  appender.stop();
}

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

@Override
public void stop() {
 for (Appender<E> appender : appenderTracker.allComponents()) {
  appender.stop();
 }
}

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

@Override
public void stop() {
 for (Appender<E> appender : appenderTracker.allComponents()) {
  appender.stop();
 }
}

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

/**
 * Remove and processPriorToRemoval all previously attached appenders.
 */
public void detachAndStopAllAppenders() {
  for (Appender<E> a : appenderList) {
    a.stop();
  }
  appenderList.clear();
}

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

/**
 * Remove and processPriorToRemoval all previously attached appenders.
 */
public void detachAndStopAllAppenders() {
 for (Appender<E> a : appenderList) {
  a.stop();
 }
 appenderList.clear();
}

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

@Override
public void stop() {
 for (Appender<E> appender : appenderTracker.valueList()) {
  appender.stop();
 }
}

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

@Override
public void stop() {
 for (Appender<E> appender : appenderTracker.valueList()) {
  appender.stop();
 }
}

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

/**
 * Remove and processPriorToRemoval all previously attached appenders.
 */
public void detachAndStopAllAppenders() {
  for (Appender<E> a : appenderList) {
    a.stop();
  }
  appenderList.clear();
}

代码示例来源:origin: qos-ch/logback-extensions

@Override
public void stop() {
  super.stop();
  if (cache != null) {
    cache = null;
  }
  if (delegate != null) {
    delegate.stop();
    delegate = null;
  }
}

代码示例来源:origin: net.logstash.logback/logstash-logback-encoder

private void stopDelegateAppenders() {
  for (Iterator<Appender<Event>> appenderIter = appenders.iteratorForAppenders(); appenderIter.hasNext();) {
    Appender<Event> appender = appenderIter.next();
    if (appender.isStarted()) {
      appender.stop();
    }
  }
}

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

public synchronized void stopStaleAppenders(long now) {
 if (lastCheck + CoreConstants.MILLIS_IN_ONE_SECOND > now) {
  return;
 }
 lastCheck = now;
 while (head.value != null && isEntryStale(head,now)) {
  Appender<E> appender = head.value;
  appender.stop();
  removeHead();
 }
}

代码示例来源:origin: protegeproject/protege

public void unbind() {        
  getRootLogger().detachAppender(appender);
  appender.stop();
}

代码示例来源:origin: apache/jackrabbit-oak

public void finished() {
  if (originalLevel != null) {
    logger.setLevel(originalLevel);
  }
  logger.detachAppender(customLogger);
  customLogger.stop();
  logs.clear();
}

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

@Test
public void testConfiguredAppender() {
 Appender<E> appender = getConfiguredAppender();
 appender.start();
 assertTrue(appender.isStarted());
  appender.stop();
 assertFalse(appender.isStarted());
 
}

相关文章