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 TypeMethodDescriptionvoid
append
(Collection<Event> events, Layout layout) Append a collection of events to the target.void
Append an event to the target.name()
Get the name of theAppender
.void
Set the filter for the target.
-
Method Details
-
name
String name()Get the name of theAppender
.- Returns:
-
append
Append an event to the target.- Parameters:
event
-layout
-
-
append
Append a collection of events to the target.- Parameters:
events
-layout
-
-
setFilter
Set the filter for the target.- Parameters:
filter
-
-