Class ConsoleAppender.SystemOutStream
java.lang.Object
java.io.OutputStream
org.apache.logging.log4j.core.appender.ConsoleAppender.SystemOutStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
ConsoleAppender
An implementation of OutputStream that redirects to the current System.out.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
SystemOutStream
public SystemOutStream()
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream
-
flush
public void flush()- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-