Package io.deephaven.io.logger
Class LoggerOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- io.deephaven.io.logger.LoggerOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class LoggerOutputStream extends java.io.OutputStreamOutputStream implementation for outputting data to a Logger. Expects that each appended byte represents a char (1:1, so only ASCII/LATIN-1 and similar charsets are supported). flush() events are ignored - we end() log entries on newlines.
-
-
Constructor Summary
Constructors Constructor Description LoggerOutputStream(Logger logger, LogLevel logLevel)Create a stream that writes bytes as chars to the specified logger at the specified level.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(int b)
-