public class CommonsLogWriter
extends java.io.Writer
java.io.Writer
adapter for a Commons Logging Log
.Modifier and Type | Field and Description |
---|---|
private java.lang.StringBuilder |
buffer |
private Log |
logger |
Constructor and Description |
---|
CommonsLogWriter(Log logger)
Create a new CommonsLogWriter for the given Commons Logging logger.
|
public CommonsLogWriter(Log logger)
logger
- the Commons Logging logger to write topublic void write(char ch)
public void write(char[] buffer, int offset, int length)
write
in class java.io.Writer
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.Writer
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer