本文整理了Java中ch.qos.logback.core.rolling.RollingFileAppender.subAppend
方法的一些代码示例,展示了RollingFileAppender.subAppend
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RollingFileAppender.subAppend
方法的具体详情如下:
包路径:ch.qos.logback.core.rolling.RollingFileAppender
类名称: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!