Package opennlp.tools.log
Class LogPrintStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
opennlp.tools.log.LogPrintStream
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
This class serves as an adapter for a
Logger
used within a PrintStream
.-
Constructor Summary
ConstructorDescriptionLogPrintStream
(org.slf4j.Logger logger) Creates aLogPrintStream
for the givenLogger
.LogPrintStream
(org.slf4j.Logger logger, org.slf4j.event.Level level) -
Method Summary
Methods inherited from class java.io.PrintStream
append, append, append, checkError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, println, println, println, println, println, println, println, println, println, write, write, write, writeBytes
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
LogPrintStream
public LogPrintStream(org.slf4j.Logger logger) Creates aLogPrintStream
for the givenLogger
.- Parameters:
logger
- must not benull
-
LogPrintStream
public LogPrintStream(org.slf4j.Logger logger, org.slf4j.event.Level level) - Parameters:
logger
- must not benull
level
- must not benull
-
-
Method Details
-
printf
- Overrides:
printf
in classPrintStream
-
println
- Overrides:
println
in classPrintStream
-