public class JkMemoryBufferLogDecorator extends JkLog.JkLogDecorator
| Modifier and Type | Method and Description |
|---|---|
static void |
activateOnJkLog() |
static void |
flush()
Flush on the target outputStream of the delegate decorator.
|
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. |
static void |
inactivateOnJkLog() |
void |
init(java.io.PrintStream out,
java.io.PrintStream err)
This method is invoked by JkLog when a new consumer is applied on.
|
static boolean |
isActive() |
getTargetErr, getTargetOutpublic void init(java.io.PrintStream out,
java.io.PrintStream err)
JkLog.JkLogDecoratorPrintStream for outputting decorated log eventsinit in class JkLog.JkLogDecoratorpublic java.io.PrintStream getOut()
JkLog.JkLogDecoratorPrintStream in order to be used as System.outpublic java.io.PrintStream getErr()
JkLog.JkLogDecoratorPrintStream in order to be used as System.errpublic void handle(JkLog.JkLogEvent event)
JkLog.JkLogDecoratorJkLog.JkLogDecorator.init(PrintStream, PrintStream) method.public static void activateOnJkLog()
public static void inactivateOnJkLog()
public static boolean isActive()
public static void flush()