JBoss STDIO 1.0.0.GA

org.jboss.stdio
Class LoggingOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.jboss.stdio.WriterOutputStream
          extended by org.jboss.stdio.LoggingOutputStream
All Implemented Interfaces:
Closeable, Flushable

public final class LoggingOutputStream
extends WriterOutputStream

A convenience OutputStream which writes to a LoggingWriter.


Constructor Summary
LoggingOutputStream(Logger log, Level level)
          Construct a new instance.
LoggingOutputStream(String category, Level level)
          Construct a new instance.
LoggingOutputStream(String category, String levelName)
          Construct a new instance.
 
Method Summary
 
Methods inherited from class org.jboss.stdio.WriterOutputStream
close, flush, write, write
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingOutputStream

public LoggingOutputStream(String category,
                           String levelName)
Construct a new instance.

Parameters:
category - the log category to use
levelName - the name of the level at which to log messages

LoggingOutputStream

public LoggingOutputStream(String category,
                           Level level)
Construct a new instance.

Parameters:
category - the log category to use
level - the level at which to log messages

LoggingOutputStream

public LoggingOutputStream(Logger log,
                           Level level)
Construct a new instance.

Parameters:
log - the logger to use
level - the level at which to log messages

JBoss STDIO 1.0.0.GA

Copyright © 2010 JBoss, a division of Red Hat, Inc.