org.jboss.logging.util
Class LoggerPluginWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.PrintWriter
          extended byorg.jboss.logging.util.LoggerPluginWriter

public class LoggerPluginWriter
extends java.io.PrintWriter

A subclass of PrintWriter that redirects its output to a LoggerPlugin at INFO level. The only usecase for this is legacy java apis which require integration with the logging layer through a Writer.


Field Summary
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
LoggerPluginWriter(LoggerPlugin (src)  logger)
           
 
Methods inherited from class java.io.PrintWriter
checkError, close, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerPluginWriter

public LoggerPluginWriter(LoggerPlugin (src)  logger)
Parameters:
logger - the logging plugin used to write messages