org.jboss.stdio
Class LoggingOutputStream
java.lang.Object
java.io.OutputStream
org.jboss.stdio.WriterOutputStream
org.jboss.stdio.LoggingOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public final class LoggingOutputStream
- extends WriterOutputStream
A convenience OutputStream which writes to a LoggingWriter.
|
Constructor Summary |
LoggingOutputStream(java.util.logging.Logger log,
java.util.logging.Level level)
Construct a new instance. |
LoggingOutputStream(java.lang.String category,
java.util.logging.Level level)
Construct a new instance. |
LoggingOutputStream(java.lang.String category,
java.lang.String levelName)
Construct a new instance. |
| 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 |
LoggingOutputStream
public LoggingOutputStream(java.lang.String category,
java.lang.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(java.lang.String category,
java.util.logging.Level level)
- Construct a new instance.
- Parameters:
category - the log category to uselevel - the level at which to log messages
LoggingOutputStream
public LoggingOutputStream(java.util.logging.Logger log,
java.util.logging.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.