edu.stanford.nlp.util.logging
Interface PrettyLoggable

All Known Subinterfaces:
CoreMap, Counter<E>
All Known Implementing Classes:
AbstractCounter, ArrayCoreMap, ClassicCounter, CoreLabel, CyclicCoreLabel, HashableCoreMap, IndexedWord, IntCounter, Interval, Pair, Triple

public interface PrettyLoggable

Indicates that a class supports "pretty logging". Pretty logging is a type of pretty-printing that uses the Redwood logging system to structure itself. When pretty logging the contents of your object, you should check to see if each object (call it obj) is dispatchable with PrettyLogger.dispatchable(obj) if you don't know their type. If true, you should call channels.prettyLog(obj) to pretty log it. Otherwise, use its toString() method.

Author:
David McClosky
See Also:
PrettyLogger

Method Summary
 void prettyLog(Redwood.RedwoodChannels channels, String description)
          Pretty logs the current object to specific Redwood channels.
 

Method Detail

prettyLog

void prettyLog(Redwood.RedwoodChannels channels,
               String description)
Pretty logs the current object to specific Redwood channels.

Parameters:
channels - the channels which should be logged to -- all logging calls should use logging methods on the channels (e.g. channels.log(), etc.)
description - The description of the object. It will potentially identify the object's functional role or (failing that) its class. This is typically used as a track name surrounding the contents of this object.


Stanford NLP Group