public class LoggerPrintStream extends PrintStream
PrintStream
methods in spirit, but doesn't require 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
Modifier | Constructor and Description |
---|---|
protected |
LoggerPrintStream(org.apache.logging.log4j.spi.ExtendedLogger logger,
boolean autoFlush,
Charset charset,
String fqcn,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker) |
protected |
LoggerPrintStream(OutputStream out,
boolean autoFlush,
Charset charset,
org.apache.logging.log4j.spi.ExtendedLogger logger,
String fqcn,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker) |
Modifier and Type | Method and Description |
---|---|
LoggerPrintStream |
append(char c) |
LoggerPrintStream |
append(CharSequence csq) |
LoggerPrintStream |
append(CharSequence csq,
int start,
int end) |
boolean |
checkError() |
void |
close() |
void |
flush() |
LoggerPrintStream |
format(Locale l,
String format,
Object... args) |
LoggerPrintStream |
format(String format,
Object... args) |
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) |
LoggerPrintStream |
printf(Locale l,
String format,
Object... args) |
LoggerPrintStream |
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, setError
protected LoggerPrintStream(org.apache.logging.log4j.spi.ExtendedLogger logger, boolean autoFlush, Charset charset, String fqcn, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker) throws UnsupportedEncodingException
UnsupportedEncodingException
protected LoggerPrintStream(OutputStream out, boolean autoFlush, Charset charset, org.apache.logging.log4j.spi.ExtendedLogger logger, String fqcn, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker) throws UnsupportedEncodingException
UnsupportedEncodingException
public LoggerPrintStream append(char c)
append
in interface Appendable
append
in class PrintStream
public LoggerPrintStream append(CharSequence csq)
append
in interface Appendable
append
in class PrintStream
public LoggerPrintStream append(CharSequence csq, int start, int end)
append
in interface Appendable
append
in class PrintStream
public boolean checkError()
checkError
in class PrintStream
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 LoggerPrintStream format(Locale l, String format, Object... args)
format
in class PrintStream
public LoggerPrintStream format(String format, Object... args)
format
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 LoggerPrintStream printf(Locale l, String format, Object... args)
printf
in class PrintStream
public LoggerPrintStream printf(String format, Object... args)
printf
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[] b) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] b, int off, int len)
write
in class PrintStream
public void write(int b)
write
in class PrintStream
Copyright © 1999-2021 The 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.