public class LoggerPrintStream extends PrintStream
Note that only the output of print
and println
calls goes to the
logger. Calls to the write
methods are ignored since they take binary data which
cannot be easily redirected to the logger.
out
Constructor and Description |
---|
LoggerPrintStream(Logger logger,
Level level) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
print(boolean b) |
void |
print(char c) |
void |
print(char[] s) |
void |
print(double d) |
void |
print(float f) |
void |
print(int i) |
void |
print(long l) |
void |
print(Object obj) |
void |
print(String s) |
void |
println() |
void |
println(boolean x) |
void |
println(char x) |
void |
println(char[] x) |
void |
println(double x) |
void |
println(float x) |
void |
println(int x) |
void |
println(long x) |
void |
println(Object x) |
void |
println(String x) |
void |
write(byte[] aBuf,
int off,
int len) |
void |
write(int b) |
append, append, append, checkError, clearError, format, format, printf, printf, setError
write
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class PrintStream
public void flush()
flush
in interface Flushable
flush
in class PrintStream
public void print(boolean b)
print
in class PrintStream
public void print(char c)
print
in class PrintStream
public void print(char[] s)
print
in class PrintStream
public void print(double d)
print
in class PrintStream
public void print(float f)
print
in class PrintStream
public void print(int i)
print
in class PrintStream
public void print(long l)
print
in class PrintStream
public void print(Object obj)
print
in class PrintStream
public void print(String s)
print
in class PrintStream
public void println()
println
in class PrintStream
public void println(boolean x)
println
in class PrintStream
public void println(char x)
println
in class PrintStream
public void println(char[] x)
println
in class PrintStream
public void println(double x)
println
in class PrintStream
public void println(float x)
println
in class PrintStream
public void println(int x)
println
in class PrintStream
public void println(long x)
println
in class PrintStream
public void println(Object x)
println
in class PrintStream
public void println(String x)
println
in class PrintStream
public void write(byte[] aBuf, int off, int len)
write
in class PrintStream
public void write(int b)
write
in class PrintStream
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.