public static class Redwood.Record
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
callingClass |
java.lang.String |
callingMethod |
java.lang.Object |
content |
int |
depth |
long |
thread |
long |
timesstamp |
| Modifier | Constructor and Description |
|---|---|
protected |
Redwood.Record(java.lang.Object content,
java.lang.Object[] channels,
int depth,
java.lang.StackTraceElement stackTraceElement,
long timestamp)
Create a new Record, based on the content of the log, the channels, and
the depth
|
protected |
Redwood.Record(java.lang.Object content,
java.lang.Object[] channels,
int depth,
java.lang.String callingClass,
java.lang.String callingMethod,
long timestamp)
Create a new Record, based on the content of the log, the channels, and
the depth
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.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
|
java.lang.String |
toString() |
public final java.lang.Object content
public final int depth
public final java.lang.String callingClass
public final java.lang.String callingMethod
public final long timesstamp
public final long thread
protected Redwood.Record(java.lang.Object content,
java.lang.Object[] channels,
int depth,
java.lang.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(java.lang.Object content,
java.lang.Object[] channels,
int depth,
java.lang.String callingClass,
java.lang.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 frompublic boolean force()
public java.lang.Object[] channels()
public java.lang.String toString()
toString in class java.lang.Object