Class LogWriter

java.lang.Object
java.io.Writer
org.apache.drill.exec.compile.LogWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class LogWriter extends Writer
A simple Writer that will forward whole lines (lines ending with a newline) to a Logger. The newlines themselves are not forwarded.
  • Constructor Details

    • LogWriter

      public LogWriter(org.slf4j.Logger logger, org.apache.log4j.Level level)
      Constructor.
      Parameters:
      logger - the logger this Writer should write to
      level - the debug level to write to the logger with
  • Method Details