org.zeroturnaround.exec.stream.slf4j
Class Slf4jTraceOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.zeroturnaround.exec.stream.LogOutputStream
          extended by org.zeroturnaround.exec.stream.slf4j.Slf4jOutputStream
              extended by org.zeroturnaround.exec.stream.slf4j.Slf4jTraceOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class Slf4jTraceOutputStream
extends Slf4jOutputStream

Output stream that writes trace level messages to a given Logger.

Author:
Rein Raudjärv

Field Summary
 
Fields inherited from class org.zeroturnaround.exec.stream.slf4j.Slf4jOutputStream
log
 
Constructor Summary
Slf4jTraceOutputStream(org.slf4j.Logger logger)
           
 
Method Summary
protected  void processLine(String line)
          Logs a line to the log system of the user.
 
Methods inherited from class org.zeroturnaround.exec.stream.slf4j.Slf4jOutputStream
getLogger
 
Methods inherited from class org.zeroturnaround.exec.stream.LogOutputStream
close, flush, processBuffer, 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

Slf4jTraceOutputStream

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

processLine

protected void processLine(String line)
Description copied from class: LogOutputStream
Logs a line to the log system of the user.

Specified by:
processLine in class LogOutputStream
Parameters:
line - the line to log.


Copyright © 2015 ZeroTurnaround. All rights reserved.