ch.qos.logback.core.rolling.RollingFileAppender.subAppend()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(161)

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

RollingFileAppender.subAppend介绍

[英]This method differentiates RollingFileAppender from its super class.
[中]此方法将RollingFileAppender与其超类区分开来。

代码示例

代码示例来源:origin: airlift/airlift

@Override
protected void subAppend(T event)
{
  super.subAppend(event);
  long now = System.nanoTime();
  long last = lastFlushed.get();
  if (((now - last) > flushIntervalNanos) && lastFlushed.compareAndSet(last, now)) {
    flush();
  }
}

代码示例来源:origin: com.proofpoint.platform/log

@Override
protected void subAppend(T event)
{
  super.subAppend(event);
  long now = System.nanoTime();
  long last = lastFlushed.get();
  if (((now - last) > flushIntervalNanos) && lastFlushed.compareAndSet(last, now)) {
    flush();
  }
}

代码示例来源:origin: io.airlift/http-server

@Override
protected void subAppend(T event)
{
  super.subAppend(event);
  long now = System.nanoTime();
  long last = lastFlushed.get();
  if (((now - last) > FLUSH_INTERVAL_NANOS) && lastFlushed.compareAndSet(last, now)) {
    flush();
  }
}

代码示例来源:origin: org.mock-server/mockserver-logging

@Override
  protected void subAppend(E event) {
    if (!fileCreated) {
      super.start();
      fileCreated = true;
    }
    super.subAppend(event);
  }
}

相关文章