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 Logging Log.
Since:
2.5.1
Author:
Juergen Hoeller
  • Constructor Details

    • 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 Details

    • write

      public void write(char ch)
    • write

      public void write(char[] buffer, int offset, int length)
      Specified by:
      write in class Writer
    • flush

      public void flush()
      Specified by:
      flush in interface Flushable
      Specified by:
      flush in class Writer
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class Writer