Class RemoteAppender

java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
com.seeq.link.agent.RemoteAppender
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 RemoteAppender extends ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
This Log4Net appender stores log events in fixed-size queue that is drained by the Seeq Agent when it sends the logs up to Appserver every few seconds.
  • Field Summary

    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
    RemoteAppender(int queueSize)
     
    RemoteAppender(int queueSize, String loggerName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected void
    append(ch.qos.logback.classic.spi.ILoggingEvent loggingEvent)
     
    ch.qos.logback.classic.spi.ILoggingEvent
     
    void
     
    boolean
     

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

    addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, start, stop, 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
  • Constructor Details

    • RemoteAppender

      public RemoteAppender(int queueSize)
    • RemoteAppender

      public RemoteAppender(int queueSize, String loggerName)
  • Method Details

    • addToLogger

      public void addToLogger()
    • detachFromLogger

      public void detachFromLogger()
    • dequeue

      public ch.qos.logback.classic.spi.ILoggingEvent dequeue()
    • append

      protected void append(ch.qos.logback.classic.spi.ILoggingEvent loggingEvent)
      Specified by:
      append in class ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
    • getAndClearOverflowFlag

      public boolean getAndClearOverflowFlag()