org.zeroturnaround.exec.stream.slf4j
Class Slf4jOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.zeroturnaround.exec.stream.LogOutputStream
          extended by org.zeroturnaround.exec.stream.slf4j.Slf4jOutputStream
All Implemented Interfaces:
Closeable, Flushable
Direct Known Subclasses:
Slf4jDebugOutputStream, Slf4jErrorOutputStream, Slf4jInfoOutputStream, Slf4jTraceOutputStream, Slf4jWarnOutputStream

public abstract class Slf4jOutputStream
extends LogOutputStream

Output stream that writes to a given Logger.

Author:
Rein Raudjärv

Field Summary
protected  org.slf4j.Logger log
           
 
Constructor Summary
Slf4jOutputStream(org.slf4j.Logger logger)
           
 
Method Summary
 org.slf4j.Logger getLogger()
           
 
Methods inherited from class org.zeroturnaround.exec.stream.LogOutputStream
close, flush, processBuffer, processLine, 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
 

Field Detail

log

protected final org.slf4j.Logger log
Constructor Detail

Slf4jOutputStream

public Slf4jOutputStream(org.slf4j.Logger logger)
Method Detail

getLogger

public org.slf4j.Logger getLogger()


Copyright © 2015 ZeroTurnaround. All rights reserved.