Class LogPrintStream

All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

@Internal public class LogPrintStream extends PrintStream
This class serves as an adapter for a Logger used within a PrintStream.
  • Constructor Details

    • LogPrintStream

      public LogPrintStream(org.slf4j.Logger logger)
      Creates a LogPrintStream for the given Logger.
      Parameters:
      logger - must not be null
    • LogPrintStream

      public LogPrintStream(org.slf4j.Logger logger, org.slf4j.event.Level level)
      Creates a LogPrintStream for the given Logger, which logs at the specified level.
      Parameters:
      logger - must not be null
      level - must not be null
  • Method Details