|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.util.logging.PrettyLogger
public class PrettyLogger
Primarily for debugging, PrettyLogger helps you dump various collection objects in a reasonably structured way via Redwood logging. It has support for many built in collection types (Mapping, Iterable, arrays, Properties) as well as anything that implements PrettyLoggable.
PrettyLoggable| Method Summary | ||
|---|---|---|
static boolean |
dispatchable(java.lang.Object obj)
Returns true if an object has special logic for pretty logging (e.g. |
|
static void |
log(java.lang.Object obj)
Pretty log an object. |
|
static void |
log(Redwood.RedwoodChannels channels,
java.lang.Object obj)
Pretty log an object. |
|
static
|
log(Redwood.RedwoodChannels channels,
java.lang.String description,
java.lang.Object obj)
Pretty log an object. |
|
static void |
log(java.lang.String description,
java.lang.Object obj)
Pretty log an object along with its description. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void log(java.lang.Object obj)
obj - the object to be pretty logged
public static void log(java.lang.String description,
java.lang.Object obj)
description - denote the object in the logs (via a track name, etc.).obj - the object to be pretty logged
public static void log(Redwood.RedwoodChannels channels,
java.lang.Object obj)
channels - the channels to pretty log toobj - the object to be pretty logged
public static <T> void log(Redwood.RedwoodChannels channels,
java.lang.String description,
java.lang.Object obj)
channels - the channels to pretty log todescription - denote the object in the logs (via a track name, etc.).obj - the object to be pretty loggedpublic static boolean dispatchable(java.lang.Object obj)
obj - The object to test
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||