public final class JkBraceLogDecorator extends JkLog.JkLogDecorator
Constructor and Description |
---|
JkBraceLogDecorator() |
Modifier and Type | Method and Description |
---|---|
java.io.PrintStream |
getErr()
Returns the decorated out
PrintStream in order to be used as System.err |
java.io.PrintStream |
getOut()
Returns the decorated out
PrintStream in order to be used as System.out |
void |
handle(JkLog.JkLogEvent event)
Handle the specified decorator by outputting it on the streams injected in
JkLog.JkLogDecorator.init(PrintStream, PrintStream) method. |
void |
init(java.io.PrintStream targetOut,
java.io.PrintStream targetErr)
This method is invoked by JkLog when a new consumer is applied on.
|
static void |
setMaxLength(int maxLength) |
getTargetErr, getTargetOut
public void init(java.io.PrintStream targetOut, java.io.PrintStream targetErr)
JkLog.JkLogDecorator
PrintStream
for outputting decorated log eventsinit
in class JkLog.JkLogDecorator
public static void setMaxLength(int maxLength)
public java.io.PrintStream getOut()
JkLog.JkLogDecorator
PrintStream
in order to be used as System.out
public java.io.PrintStream getErr()
JkLog.JkLogDecorator
PrintStream
in order to be used as System.err
public void handle(JkLog.JkLogEvent event)
JkLog.JkLogDecorator
JkLog.JkLogDecorator.init(PrintStream, PrintStream)
method.