public static class MessagePrinter.Indenting<M extends Message> extends MessagePrinter<M>
MessagePrinter
which indents all log messages. Message.Kind.logStart
or Message.Kind.logEnd
is encountered, indentation is in/de-creased.SimpleMessage.Ping
message is received, only
a single character symbole is printed, for progress indication.MessagePrinter.Indenting<M extends Message>
Modifier and Type | Field and Description |
---|---|
protected String |
color_endCritical |
protected String |
color_startCritical |
static String |
DEFAULT_INDENT_STRING
default value for the indent string, is "| ".
|
static String |
DEFAULT_PING_STRING
default value for the indent string, is ".".
|
protected String |
indentString |
protected int |
level |
protected String |
pingString |
protected boolean |
printTiming |
protected boolean |
showStackTraces |
protected Map<String,Long> |
startTime |
protected boolean |
wasPing |
out, toStr
Constructor and Description |
---|
Indenting(OutputStream os)
constructor with takes default values for indent and ping string, behaves like
the super constructor . |
Indenting(OutputStream os,
String ps,
String is,
boolean sst)
constructor which takes explitly values for ping string and indent string,
apart from that it behaves like
the super constructor . |
Indenting(PrintWriter out)
constructor with takes default values for indent and ping string, behaves like
the super constructor . |
Indenting(PrintWriter out,
String ps,
String is,
boolean sst)
constructor which takes explitly values for ping string and indent string,
apart from that behaves like
the super constructor . |
Modifier and Type | Method and Description |
---|---|
void |
receive(M message)
|
void |
setCriticalColor_vt100() |
void |
setCriticalColor(String color_startCritical,
String color_endCritical) |
void |
setShowStackTraces(boolean sst) |
setMessageToString
protected final String pingString
protected final String indentString
protected boolean showStackTraces
protected String color_startCritical
protected String color_endCritical
protected boolean wasPing
protected int level
protected boolean printTiming
public static final String DEFAULT_INDENT_STRING
public static final String DEFAULT_PING_STRING
public Indenting(OutputStream os)
the super constructor
.public Indenting(PrintWriter out)
the super constructor
.public Indenting(OutputStream os, String ps, String is, boolean sst)
the super constructor
.public Indenting(PrintWriter out, String ps, String is, boolean sst)
the super constructor
.public void setShowStackTraces(boolean sst)
public void setCriticalColor_vt100()
public void receive(M message)
MessagePrinter
Message.toString()
. flushed
explicitly.receive
in interface MessageReceiver<M extends Message>
receive
in class MessagePrinter<M extends Message>
see also the complete user documentation .