|
|||||||||
| 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 java.util.List<Redwood.Record> |
EMPTY
An empty list to serve as the FALSE token for filters |
| Constructor Summary | |
|---|---|
LogRecordHandler()
|
|
| Method Summary | |
|---|---|
abstract java.util.List<Redwood.Record> |
handle(Redwood.Record record)
Handle a log Record, either as a filter or by producing a side effect. |
java.util.List<Redwood.Record> |
signalEndTrack(int newDepth,
long timeEnded)
Signal the end of a track, i.e. |
java.util.List<Redwood.Record> |
signalShutdown()
|
java.util.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 java.util.List<Redwood.Record> EMPTY
| Constructor Detail |
|---|
public LogRecordHandler()
| Method Detail |
|---|
public abstract java.util.List<Redwood.Record> handle(Redwood.Record record)
record - The log record to handle
public java.util.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 java.util.List<Redwood.Record> signalEndTrack(int newDepth,
long timeEnded)
newDepth - The new depth; that is, the current depth - 1.
public java.util.List<Redwood.Record> signalShutdown()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||