JBoss Logging Log4j 2.2.0.CR1

org.jboss.logging.util
Class LoggerPluginWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.PrintWriter
          extended by org.jboss.logging.util.LoggerPluginWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

Deprecated. This class uses the logger plugin directly rather than relying on the stable API.

@Deprecated
public class LoggerPluginWriter
extends 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.

Version:
$Revision: 3402 $
Author:
David Jencks, Scott.Stark@jboss.org

Field Summary
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
LoggerPluginWriter(org.jboss.logging.LoggerPluginInstance logger)
          Deprecated.  
 
Method Summary
 
Methods inherited from class java.io.PrintWriter
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, 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(org.jboss.logging.LoggerPluginInstance logger)
Deprecated. 
Parameters:
logger - the logging plugin used to write messages

JBoss Logging Log4j 2.2.0.CR1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.