org.apache.tomcat.util.log
public class SystemLogHandler extends PrintStream
Field Summary | |
---|---|
protected static ThreadLocal | logs
Thread <-> CaptureLog associations. |
protected PrintStream | out
Wrapped PrintStream. |
protected static Stack | reuse
Spare CaptureLog ready for reuse. |
Constructor Summary | |
---|---|
SystemLogHandler(PrintStream wrapped)
Construct the handler to capture the output of the given steam. |
Method Summary | |
---|---|
boolean | checkError() |
void | close() |
protected PrintStream | findStream()
Find PrintStream to which the output must be written to. |
void | flush() |
void | print(boolean b) |
void | print(char c) |
void | print(int i) |
void | print(long l) |
void | print(float f) |
void | print(double d) |
void | print(char[] s) |
void | print(String s) |
void | print(Object obj) |
void | println() |
void | println(boolean x) |
void | println(char x) |
void | println(int x) |
void | println(long x) |
void | println(float x) |
void | println(double x) |
void | println(char[] x) |
void | println(String x) |
void | println(Object x) |
protected void | setError() |
static void | startCapture()
Start capturing thread's output. |
static String | stopCapture()
Stop capturing thread's output and return captured data as a String. |
void | write(int b) |
void | write(byte[] b) |
void | write(byte[] buf, int off, int len) |