Package org.apache.drill.exec.compile
Class LogWriter
java.lang.Object
java.io.Writer
org.apache.drill.exec.compile.LogWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
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 tolevel- the debug level to write to the logger with
-
-
Method Details
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-