Package org.springframework.util
Class CommonsLogWriter
- java.lang.Object
- java.io.Writer
- org.springframework.util.CommonsLogWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
public class CommonsLogWriter extends Writer
java.io.Writer
adapter for a Commons LoggingLog
.- Since:
- 2.5.1
- Author:
- Juergen Hoeller
Constructor Summary
Constructors Constructor Description CommonsLogWriter(Log logger)
Create a new CommonsLogWriter for the given Commons Logging logger.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
void
write(char ch)
void
write(char[] buffer, int offset, int length)
Constructor Detail
CommonsLogWriter
public CommonsLogWriter(Log logger)
Create a new CommonsLogWriter for the given Commons Logging logger.- Parameters:
logger
- the Commons Logging logger to write to
Method Detail
write
public void write(char ch)