|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.util.logging.LogRecordHandler
public abstract class LogRecordHandler
A log message handler. This can take the role of a filter, which blocks future handlers from
receiving the message, or as an entity that produces a side effect based on the message
(e.g. printing it to console or a file).
All log Records pass through an ordered list of Handler objects; all operations done on a log
Record are done by some handler or another.
When writing filters, you should see BooleanLogRecordHandler
instead which allows for a
simpler interface.
BooleanLogRecordHandler
Field Summary | |
---|---|
static List<Redwood.Record> |
EMPTY
An empty list to serve as the FALSE token for filters |
Constructor Summary | |
---|---|
LogRecordHandler()
|
Method Summary | |
---|---|
abstract List<Redwood.Record> |
handle(Redwood.Record record)
Handle a log Record, either as a filter or by producing a side effect. |
List<Redwood.Record> |
signalEndTrack(int newDepth)
Signal the end of a track, i.e. |
List<Redwood.Record> |
signalShutdown()
|
List<Redwood.Record> |
signalStartTrack(Redwood.Record signal)
Signal the start of a track, i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final List<Redwood.Record> EMPTY
Constructor Detail |
---|
public LogRecordHandler()
Method Detail |
---|
public abstract List<Redwood.Record> handle(Redwood.Record record)
record
- The log record to handle
public List<Redwood.Record> signalStartTrack(Redwood.Record signal)
signal
- A record corresponding to the information in the track header.
The depth in this object is the old log depth.
public List<Redwood.Record> signalEndTrack(int newDepth)
newDepth
- The new depth; that is, the current depth - 1.
public List<Redwood.Record> signalShutdown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |