org.apache.openjpa.lib.log
public class LogOutputStream extends java.io.ByteArrayOutputStream
OutputStream
s.
This wrapper class extends the ByteArrayOutputStream
class and writes all given data to an underlying Log
instance
whenever it is flushed and the internally held byte array contains a newline.Constructor and Description |
---|
LogOutputStream(Log log,
int level)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
flush() |
public LogOutputStream(Log log, int level)
log
- the log to log tolevel
- the level to log at