Klasse InMemoryAppender

java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
de.bytestore.hostinger.listener.InMemoryAppender
Alle implementierten Schnittstellen:
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 InMemoryAppender extends ch.qos.logback.core.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
  • Feldübersicht

    Von Klasse geerbte Felder ch.qos.logback.core.UnsynchronizedAppenderBase

    name, started

    Von Klasse geerbte Felder ch.qos.logback.core.spi.ContextAwareBase

    context
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    protected void
    append(ch.qos.logback.classic.spi.ILoggingEvent event)
    Appends a logging event to the list of events.
    static void
    Attaches a given InMemoryListener to the listeners list.
    static void
    Detaches a given InMemoryListener from the listeners list.

    Von Klasse geerbte Methoden ch.qos.logback.core.UnsynchronizedAppenderBase

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

    Von Klasse geerbte Methoden ch.qos.logback.core.spi.ContextAwareBase

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

    Von Klasse geerbte Methoden java.lang.Object

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

    Von Schnittstelle geerbte Methoden ch.qos.logback.core.spi.ContextAware

    addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
  • Konstruktordetails

    • InMemoryAppender

      public InMemoryAppender()
  • Methodendetails

    • attach

      public static void attach(InMemoryListener listenerIO)
      Attaches a given InMemoryListener to the listeners list. The attached listener will receive events and updates.
      Parameter:
      listenerIO - The InMemoryListener to attach.
    • detach

      public static void detach(InMemoryListener listenerIO)
      Detaches a given InMemoryListener from the listeners list. The detached listener will no longer receive events and updates.
      Parameter:
      listenerIO - The InMemoryListener to detach.
    • append

      protected void append(ch.qos.logback.classic.spi.ILoggingEvent event)
      Appends a logging event to the list of events. If the list exceeds the size limit of 1024, the oldest event will be removed.
      Angegeben von:
      append in Klasse ch.qos.logback.core.UnsynchronizedAppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
      Parameter:
      event - the logging event to append