qflib 0.99

de.qfs.lib.log
Interface LogFilter

All Known Subinterfaces:
LogUser
All Known Implementing Classes:
AbstractLogUser, RemoteLogFilter, StreamFilter

public interface LogFilter

A simple filter that decides, whether a message should be logged or not.

Author:
Gregor Schmid
See Also:
Log, LogEntry, Log.addFilter(de.qfs.lib.log.LogFilter)

Method Summary
 boolean filter(LogEntry logEntry)
          Decide whether a message should be logged.
 LogEntry[] filter(LogEntry[] entries)
          Decide for each message in an array whether it should be logged.
 

Method Detail

filter

public boolean filter(LogEntry logEntry)
Decide whether a message should be logged.

Parameters:
logEntry - The entry for the log message.
Returns:
True, if the message should be passed on, false if it should be blocked.

filter

public LogEntry[] filter(LogEntry[] entries)
Decide for each message in an array whether it should be logged.

Parameters:
entries - The list of LogEntries.
Returns:
An array containing the entries that were not filtered out.

qflib 0.99