|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.util.logging.Redwood.Record
public static class Redwood.Record
A log record, which encapsulates the information needed to eventually display the enclosed message.
Field Summary | |
---|---|
String |
callingClass
|
String |
callingMethod
|
Object |
content
|
int |
depth
|
long |
thread
|
long |
timesstamp
|
Constructor Summary | |
---|---|
protected |
Redwood.Record(Object content,
Object[] channels,
int depth,
StackTraceElement stackTraceElement,
long timestamp)
Create a new Record, based on the content of the log, the channels, and the depth |
protected |
Redwood.Record(Object content,
Object[] channels,
int depth,
String callingClass,
String callingMethod,
long timestamp)
Create a new Record, based on the content of the log, the channels, and the depth |
Method Summary | |
---|---|
Object[] |
channels()
Returns the channels for this record, in sorted order (special channels first, then alphabetical) |
boolean |
force()
Returns whether this log message wants to be forced to be printed |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final Object content
public final int depth
public final String callingClass
public final String callingMethod
public final long timesstamp
public final long thread
Constructor Detail |
---|
protected Redwood.Record(Object content, Object[] channels, int depth, StackTraceElement stackTraceElement, long timestamp)
content
- An object (usually String) representing the log contentschannels
- A set of channels to publish this record todepth
- The depth of the log messagestackTraceElement
- The stack trace element to extract the calling class and method fromtimestamp
- The time this record was createdprotected Redwood.Record(Object content, Object[] channels, int depth, String callingClass, String callingMethod, long timestamp)
content
- An object (usually String) representing the log contentschannels
- A set of channels to publish this record todepth
- The depth of the log messagecallingClass
- The class this record should claim to be called fromcallingMethod
- The method this record should claim to be called fromMethod Detail |
---|
public boolean force()
public Object[] channels()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |