net.sourceforge.cruisecontrol.util
Class StreamLogger
java.lang.Object
net.sourceforge.cruisecontrol.util.StreamLogger
- All Implemented Interfaces:
- StreamConsumer
- public final class StreamLogger
- extends java.lang.Object
- implements StreamConsumer
Logs the content of a Stream line by line.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInfoLogger
public static StreamConsumer getInfoLogger(org.apache.log4j.Logger log)
getInfoPumper
public static StreamPumper getInfoPumper(org.apache.log4j.Logger log,
java.io.InputStream info)
getInfoPumper
public static StreamPumper getInfoPumper(org.apache.log4j.Logger log,
java.lang.Process process)
getWarnLogger
public static StreamConsumer getWarnLogger(org.apache.log4j.Logger log)
getWarnPumper
public static StreamPumper getWarnPumper(org.apache.log4j.Logger log,
java.io.InputStream warn)
getWarnPumper
public static StreamPumper getWarnPumper(org.apache.log4j.Logger log,
java.lang.Process process)
consumeLine
public void consumeLine(java.lang.String line)
- Called when the StreamPumper pumps a line from the Stream.
- Specified by:
consumeLine
in interface StreamConsumer