Class SMTPLogsAppender<E>

java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<E>
com.nilhcem.fakesmtp.log.SMTPLogsAppender<E>
Type Parameters:
E - a Logback logging event.
All Implemented Interfaces:
ch.qos.logback.core.Appender<E>, ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.FilterAttachable<E>, ch.qos.logback.core.spi.LifeCycle

public final class SMTPLogsAppender<E> extends ch.qos.logback.core.AppenderBase<E>
Logback appender class, which will redirect all logs to the LogsPane object.
Since:
1.0
Author:
Nilhcem
  • 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    append(E event)
    Receives a log from Logback, and sends it to the LogsPane object.
    Returns the log observable object.

    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

    • SMTPLogsAppender

      public SMTPLogsAppender()
  • Method Details

    • append

      protected void append(E event)
      Receives a log from Logback, and sends it to the LogsPane object.
      Specified by:
      append in class ch.qos.logback.core.AppenderBase<E>
      Parameters:
      event - a Logback ILoggingEvent event.
    • getObservable

      public Observable getObservable()
      Returns the log observable object.
      Returns:
      the log observable object.