public interface IncidentStream
Formatter
,
Formattable
,
DataCollector
Modifier and Type | Interface and Description |
---|---|
static interface |
IncidentStream.Writer<T extends java.io.OutputStream>
Custom formatters or formattable implementations can use this interface to access
the output stream used by the incident stream.
|
Modifier and Type | Method and Description |
---|---|
void |
write(IncidentStream.Writer<java.io.OutputStream> writer)
Write on this stream the content provided by the
writer |
void |
write(java.lang.String label,
java.lang.Object object)
Write an object with a label on the incident stream.
|
void |
write(java.lang.String label,
java.lang.Object value,
int depth)
Write an object with a label on the incident stream.
|
void write(java.lang.String label, java.lang.Object object)
If the object is a Class or a Logger instance the name of it will be printed.
If a formatter is registered for the object type, or the object is formattable see in the SDD the rules how the value is printed.
In all other cases the object is introspected.
Note that if an object has already been written, all subsequent writing result i printing the label followed by the classname and hash code.
label
- object
- void write(java.lang.String label, java.lang.Object value, int depth)
label
- value
- depth
- write(String label, Object object)
void write(IncidentStream.Writer<java.io.OutputStream> writer)
writer
writer
-