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.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLogWriter
(org.slf4j.Logger logger, org.apache.log4j.Level level) Constructor. -
Method Summary
-
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:
write
in classWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-