Package io.antmedia.logger
Class AntmediaAppender
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
io.antmedia.logger.AntmediaAppender
- All Implemented Interfaces:
ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>,ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.FilterAttachable<ch.qos.logback.classic.spi.ILoggingEvent>,ch.qos.logback.core.spi.LifeCycle
public class AntmediaAppender
extends ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
Appender for logback in charge of sending the logged events to a Firebase analytic server.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static ExecutorServiceprotected static final org.slf4j.Loggerprivate intprivate intFields inherited from class ch.qos.logback.core.AppenderBase
name, startedFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(ch.qos.logback.classic.spi.ILoggingEvent iLoggingEvent) static org.apache.http.impl.client.CloseableHttpClientintvoidsendErrorToAnalytic(ch.qos.logback.classic.spi.IThrowableProxy throwbleProxy) voidstop()Methods inherited from class ch.qos.logback.core.AppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, start, toStringMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Field Details
-
logger
protected static final org.slf4j.Logger logger -
executor
-
numberOfCalls
private int numberOfCalls -
numberOfException
private int numberOfException
-
-
Constructor Details
-
AntmediaAppender
public AntmediaAppender()
-
-
Method Details
-
append
public void append(ch.qos.logback.classic.spi.ILoggingEvent iLoggingEvent) - Specified by:
appendin classch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
stop
public void stop()- Specified by:
stopin interfacech.qos.logback.core.spi.LifeCycle- Overrides:
stopin classch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
sendErrorToAnalytic
public void sendErrorToAnalytic(ch.qos.logback.classic.spi.IThrowableProxy throwbleProxy) -
getHttpClient
public static org.apache.http.impl.client.CloseableHttpClient getHttpClient() -
getNumberOfCalls
public int getNumberOfCalls()
-