cmsc433.p1
Interface FilterLog

All Superinterfaces:
Log
All Known Implementing Classes:
BasicFilterLog

public interface FilterLog
extends Log

A FilterLog is a kind of log that is mediated by a filter.


Method Summary
 void setFilter(java.lang.String pattern)
          Sets a regular-expression filter that governs which events are stored.
 
Methods inherited from interface cmsc433.p1.Log
add, flush, getAll, register, unregister
 

Method Detail

setFilter

void setFilter(java.lang.String pattern)
Sets a regular-expression filter that governs which events are stored.

Parameters:
pattern - is a regular expression to match against; if a LogRecord is added with an event portion matching this expression, then the LogRecord is retained. Otherwise, the LogRecord is ignored.