public class LoggingEventAppenderListenerImpl extends Object implements AppenderListener<ch.qos.logback.classic.spi.ILoggingEvent>
AppenderListener for ILoggingEvents that does nothing.| Constructor and Description |
|---|
LoggingEventAppenderListenerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
appenderStarted(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender)
Called when the given appender is started.
|
void |
appenderStopped(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender)
Called when the given appender is stopped.
|
void |
eventAppended(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender,
ch.qos.logback.classic.spi.ILoggingEvent event,
long durationInNanos)
Called when the given event was successfully appended by the given appender.
|
void |
eventAppendFailed(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender,
ch.qos.logback.classic.spi.ILoggingEvent event,
Throwable reason)
Called when the given event was failed to be appended by the given appender.
|
public void appenderStarted(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender)
AppenderListenerappenderStarted in interface AppenderListener<ch.qos.logback.classic.spi.ILoggingEvent>appender - the appender that was startedpublic void appenderStopped(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender)
AppenderListenerappenderStopped in interface AppenderListener<ch.qos.logback.classic.spi.ILoggingEvent>appender - the appender that was stoppedpublic void eventAppended(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender,
ch.qos.logback.classic.spi.ILoggingEvent event,
long durationInNanos)
AppenderListenereventAppended in interface AppenderListener<ch.qos.logback.classic.spi.ILoggingEvent>appender - the appender when successfully appended the eventevent - the event that was appendeddurationInNanos - the time (in nanoseconds) it took to append the eventpublic void eventAppendFailed(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender,
ch.qos.logback.classic.spi.ILoggingEvent event,
Throwable reason)
AppenderListenereventAppendFailed in interface AppenderListener<ch.qos.logback.classic.spi.ILoggingEvent>appender - the appender when successfully appended the eventevent - the event that was appendedreason - what caused the failureCopyright © 2019. All rights reserved.