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

    Fields
    Modifier and Type
    Field
    Description
    private static ExecutorService
     
    protected static final org.slf4j.Logger
     
    private int
     
    private int
     

    Fields inherited from class ch.qos.logback.core.AppenderBase

    name, started

    Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase

    context
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    append(ch.qos.logback.classic.spi.ILoggingEvent iLoggingEvent)
     
    static org.apache.http.impl.client.CloseableHttpClient
     
    int
     
    void
    sendErrorToAnalytic(ch.qos.logback.classic.spi.IThrowableProxy throwbleProxy)
     
    void
     

    Methods inherited from class ch.qos.logback.core.AppenderBase

    addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, start, toString

    Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase

    addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods 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

      private static ExecutorService 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:
      append in class ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
    • stop

      public void stop()
      Specified by:
      stop in interface ch.qos.logback.core.spi.LifeCycle
      Overrides:
      stop in class ch.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()