org.jboss.stdio
Class LoggingOutputStream
java.lang.Object
java.io.OutputStream
org.jboss.stdio.WriterOutputStream
org.jboss.stdio.LoggingOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public final class LoggingOutputStream
- extends WriterOutputStream
A convenience OutputStream
which writes to a LoggingWriter
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingOutputStream
public LoggingOutputStream(String category,
String levelName)
- Construct a new instance.
- Parameters:
category
- the log category to uselevelName
- 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 uselevel
- the level at which to log messages
LoggingOutputStream
public LoggingOutputStream(Logger log,
Level level)
- Construct a new instance.
- Parameters:
log
- the logger to uselevel
- the level at which to log messages
Copyright © 2010 JBoss, a division of Red Hat, Inc.