public interface AppenderListener<Event extends DeferredProcessingAware>
| Modifier and Type | Method and Description |
|---|---|
default void |
appenderStarted(Appender<Event> appender)
Called when the given appender is started.
|
default void |
appenderStopped(Appender<Event> appender)
Called when the given appender is stopped.
|
default void |
eventAppended(Appender<Event> appender,
Event event,
long durationInNanos)
Called when the given event was successfully appended by the given appender.
|
default void |
eventAppendFailed(Appender<Event> appender,
Event event,
Throwable reason)
Called when the given event was failed to be appended by the given appender.
|
default void appenderStarted(Appender<Event> appender)
appender - the appender that was starteddefault void appenderStopped(Appender<Event> appender)
appender - the appender that was stoppeddefault void 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 eventdefault void 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 © 2013–2021. All rights reserved.