org.nuxeo.log4j
Class ThreadedStreamGobbler
java.lang.Object
java.lang.Thread
org.nuxeo.log4j.ThreadedStreamGobbler
- All Implemented Interfaces:
- Runnable
public class ThreadedStreamGobbler
- extends Thread
Helper class for logging process output
- Since:
- 5.4.1
Method Summary |
void |
run()
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
ThreadedStreamGobbler
public ThreadedStreamGobbler(InputStream is,
int logLevel)
ThreadedStreamGobbler
public ThreadedStreamGobbler(InputStream inputStream,
List<String> output)
- Parameters:
inputStream
- InputStream to readoutput
- List to store output instead of logging it.- Since:
- 5.4.3
ThreadedStreamGobbler
public ThreadedStreamGobbler(InputStream inputStream,
OutputStream output)
- Parameters:
inputStream
- InputStream to readoutput
- OutputStream where to write.- Since:
- 5.4.3
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
Copyright © 2011 Nuxeo SAS. All Rights Reserved.