|
|||||||||
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(Object obj)
Returns true if an object has special logic for pretty logging (e.g. |
|
static void |
log(Object obj)
Pretty log an object. |
|
static void |
log(Redwood.RedwoodChannels channels,
Object obj)
Pretty log an object. |
|
static
|
log(Redwood.RedwoodChannels channels,
String description,
Object obj)
Pretty log an object. |
|
static void |
log(String description,
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(Object obj)
obj
- the object to be pretty loggedpublic static void log(String description, Object obj)
description
- denote the object in the logs (via a track name, etc.).obj
- the object to be pretty loggedpublic static void log(Redwood.RedwoodChannels channels, Object obj)
channels
- the channels to pretty log toobj
- the object to be pretty loggedpublic static <T> void log(Redwood.RedwoodChannels channels, String description, 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(Object obj)
obj
- The object to test
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |