org.xwiki.test.integration
Class XWikiLogOutputStream
java.lang.Object
java.io.OutputStream
org.apache.commons.exec.LogOutputStream
org.xwiki.test.integration.XWikiLogOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class XWikiLogOutputStream
- extends org.apache.commons.exec.LogOutputStream
Logs the stdout and stderr streams of an external process started using Commons Exec.
- Since:
- 4.3.1
- Version:
- $Id: 8cee40d30b40eb4c81d0a5723ccccb36fe13266a $
|
Field Summary |
static int |
STDERR
Represents the stderr stream. |
static int |
STDOUT
Represents the stdout stream. |
| Methods inherited from class org.apache.commons.exec.LogOutputStream |
close, flush, getMessageLevel, processBuffer, processLine, write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STDOUT
public static final int STDOUT
- Represents the stdout stream.
- See Also:
- Constant Field Values
STDERR
public static final int STDERR
- Represents the stderr stream.
- See Also:
- Constant Field Values
XWikiLogOutputStream
public XWikiLogOutputStream(int level)
- Parameters:
level - the level under which to log (if the actual level is less than this value it'll get logged)
processLine
protected void processLine(String line,
int level)
- Specified by:
processLine in class org.apache.commons.exec.LogOutputStream
Copyright © 2004-2013 XWiki. All Rights Reserved.