public class LoggerStream extends PrintStream
PrintStream methods in spirit, but doesn't output to
any external stream. This class should not be used as a stream for an
underlying logger unless it's being used as a bridge. Otherwise, infinite
loops may occur!out| Constructor and Description |
|---|
LoggerStream(AbstractLogger logger,
Level level) |
LoggerStream(AbstractLogger logger,
Marker marker,
Level level) |
| Modifier and Type | Method and Description |
|---|---|
LoggerStream |
append(char c) |
LoggerStream |
append(CharSequence csq) |
LoggerStream |
append(CharSequence csq,
int start,
int end) |
boolean |
checkError() |
void |
close() |
boolean |
equals(Object other) |
void |
flush() |
LoggerStream |
format(Locale l,
String format,
Object... args) |
LoggerStream |
format(String format,
Object... args) |
int |
hashCode() |
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) |
LoggerStream |
printf(Locale l,
String format,
Object... args) |
LoggerStream |
printf(String format,
Object... args) |
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) |
String |
toString() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
clearError, setErrorpublic LoggerStream(AbstractLogger logger, Level level)
public LoggerStream(AbstractLogger logger, Marker marker, Level level)
public void write(int b)
write in class PrintStreampublic void write(byte[] b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
write in class PrintStreampublic void flush()
flush in interface Flushableflush in class PrintStreampublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class PrintStreampublic void print(boolean b)
print in class PrintStreampublic void print(char c)
print in class PrintStreampublic void print(int i)
print in class PrintStreampublic void print(long l)
print in class PrintStreampublic void print(float f)
print in class PrintStreampublic void print(double d)
print in class PrintStreampublic void print(char[] s)
print in class PrintStreampublic void print(String s)
print in class PrintStreampublic void print(Object obj)
print in class PrintStreampublic void println()
println in class PrintStreampublic void println(boolean x)
println in class PrintStreampublic void println(char x)
println in class PrintStreampublic void println(int x)
println in class PrintStreampublic void println(long x)
println in class PrintStreampublic void println(float x)
println in class PrintStreampublic void println(double x)
println in class PrintStreampublic void println(char[] x)
println in class PrintStreampublic void println(String x)
println in class PrintStreampublic void println(Object x)
println in class PrintStreampublic LoggerStream printf(String format, Object... args)
printf in class PrintStreampublic LoggerStream printf(Locale l, String format, Object... args)
printf in class PrintStreampublic LoggerStream append(char c)
append in interface Appendableappend in class PrintStreampublic LoggerStream append(CharSequence csq)
append in interface Appendableappend in class PrintStreampublic LoggerStream append(CharSequence csq, int start, int end)
append in interface Appendableappend in class PrintStreampublic LoggerStream format(String format, Object... args)
format in class PrintStreampublic LoggerStream format(Locale l, String format, Object... args)
format in class PrintStreampublic boolean checkError()
checkError in class PrintStreamCopyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.