public class LoggingEventTcpAppenderListenerImpl extends LoggingEventAppenderListenerImpl implements TcpAppenderListener<ch.qos.logback.classic.spi.ILoggingEvent>
TcpAppenderListener for ILoggingEvents that does nothing.| Constructor and Description |
|---|
LoggingEventTcpAppenderListenerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionClosed(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender,
Socket socket)
Called after the given appender closes the given socket
(either due to a reconnect, or shutdown)
|
void |
connectionFailed(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender,
InetSocketAddress address,
Throwable reason)
Called after the given appender fails to open a socket
|
void |
connectionOpened(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender,
Socket socket)
Called after the given appender successfully opens the given socket
|
void |
eventSendFailure(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 appender fails to send the given event over a TCP connection.
|
void |
eventSent(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender,
Socket socket,
ch.qos.logback.classic.spi.ILoggingEvent event,
long durationInNanos)
Called after given appender successfully sent the given event over the TCP connection.
|
appenderStarted, appenderStopped, eventAppended, eventAppendFailedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappenderStarted, appenderStopped, eventAppended, eventAppendFailedpublic void eventSent(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender,
Socket socket,
ch.qos.logback.classic.spi.ILoggingEvent event,
long durationInNanos)
TcpAppenderListenereventSent in interface TcpAppenderListener<ch.qos.logback.classic.spi.ILoggingEvent>appender - the appender that sent the eventsocket - the socket over which the appender sent the eventevent - the event that was sentdurationInNanos - the time (in nanoseconds) it took to send the eventpublic void eventSendFailure(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender,
ch.qos.logback.classic.spi.ILoggingEvent event,
Throwable reason)
TcpAppenderListenereventSendFailure in interface TcpAppenderListener<ch.qos.logback.classic.spi.ILoggingEvent>appender - the appender that attempted to send the eventevent - the event that failed to sendreason - what caused the failurepublic void connectionOpened(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender,
Socket socket)
TcpAppenderListenerconnectionOpened in interface TcpAppenderListener<ch.qos.logback.classic.spi.ILoggingEvent>appender - the appender that opened the socketsocket - the socket that was openedpublic void connectionFailed(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender,
InetSocketAddress address,
Throwable reason)
TcpAppenderListenerconnectionFailed in interface TcpAppenderListener<ch.qos.logback.classic.spi.ILoggingEvent>appender - the appender that attempted to open a socketaddress - the address to which the appender attempted to connectreason - what caused the failurepublic void connectionClosed(ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> appender,
Socket socket)
TcpAppenderListenerconnectionClosed in interface TcpAppenderListener<ch.qos.logback.classic.spi.ILoggingEvent>appender - the appender that closed the socketsocket - the socket that was closedCopyright © 2019. All rights reserved.