public class LoggingEventAppenderListenerImpl extends Object implements AppenderListener<ILoggingEvent>
AppenderListener
for ILoggingEvent
s that does nothing.Constructor and Description |
---|
LoggingEventAppenderListenerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
appenderStarted(Appender<ILoggingEvent> appender)
Called when the given appender is started.
|
void |
appenderStopped(Appender<ILoggingEvent> appender)
Called when the given appender is stopped.
|
void |
eventAppended(Appender<ILoggingEvent> appender,
ILoggingEvent event,
long durationInNanos)
Called when the given event was successfully appended by the given appender.
|
void |
eventAppendFailed(Appender<ILoggingEvent> appender,
ILoggingEvent event,
Throwable reason)
Called when the given event was failed to be appended by the given appender.
|
public void appenderStarted(Appender<ILoggingEvent> appender)
AppenderListener
appenderStarted
in interface AppenderListener<ILoggingEvent>
appender
- the appender that was startedpublic void appenderStopped(Appender<ILoggingEvent> appender)
AppenderListener
appenderStopped
in interface AppenderListener<ILoggingEvent>
appender
- the appender that was stoppedpublic void eventAppended(Appender<ILoggingEvent> appender, ILoggingEvent event, long durationInNanos)
AppenderListener
eventAppended
in interface AppenderListener<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(Appender<ILoggingEvent> appender, ILoggingEvent event, Throwable reason)
AppenderListener
eventAppendFailed
in interface AppenderListener<ILoggingEvent>
appender
- the appender when successfully appended the eventevent
- the event that was appendedreason
- what caused the failureCopyright © 2020. All rights reserved.