Package simpleloglib

Interface Appender


public interface Appender

An Appender is a component that can append events to a output target. Already in alpha version there are four implementations: ConsoleAppender, JDBCAppender, FileAppender and HttpAppender.

In the future i will add more implementations to log to a file or a to a web server.

Author:
lunalobos
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    append(Collection<Event> events, Layout layout)
    Append a collection of events to the target.
    void
    append(Event event, Layout layout)
    Append an event to the target.
    Get the name of the Appender.
    void
    setFilter(Filter filter)
    Set the filter for the target.
  • Method Details

    • name

      String name()
      Get the name of the Appender.
      Returns:
    • append

      void append(Event event, Layout layout)
      Append an event to the target.
      Parameters:
      event -
      layout -
    • append

      void append(Collection<Event> events, Layout layout)
      Append a collection of events to the target.
      Parameters:
      events -
      layout -
    • setFilter

      void setFilter(Filter filter)
      Set the filter for the target.
      Parameters:
      filter -