Class LoggerPrintStream

All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class LoggerPrintStream extends PrintStream
Logs each line written to a pre-defined level. Can also be configured with a Marker. This class provides an interface that follows the 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!
Since:
2.1