public interface AppenderListener<Event extends DeferredProcessingAware>
| Modifier and Type | Method and Description |
|---|---|
void |
appenderStarted(Appender<Event> appender)
Called when the given appender is started.
|
void |
appenderStopped(Appender<Event> appender)
Called when the given appender is stopped.
|
void |
eventAppended(Appender<Event> appender,
Event event,
long durationInNanos)
Called when the given event was successfully appended by the given appender.
|
void |
eventAppendFailed(Appender<Event> appender,
Event event,
Throwable reason)
Called when the given event was failed to be appended by the given appender.
|
void appenderStarted(Appender<Event> appender)
appender - the appender that was startedvoid appenderStopped(Appender<Event> appender)
appender - the appender that was stoppedvoid eventAppended(Appender<Event> appender, Event event, long durationInNanos)
appender - the appender when successfully appended the eventevent - the event that was appendeddurationInNanos - the time (in nanoseconds) it took to append the eventvoid eventAppendFailed(Appender<Event> appender, Event event, Throwable reason)
appender - the appender when successfully appended the eventevent - the event that was appendedreason - what caused the failureCopyright © 2019. All rights reserved.