Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
LoggingThread(InputStream inputStream,
OutputStream redirect,
VisalloLogger logger,
StringBuffer contentBuffer,
String prefix)
Creates a new stream helper and immediately starts capturing output from
the given stream.
|
LoggingThread(InputStream inputStream,
VisalloLogger logger,
String prefix) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(String output)
This method will write any output from the stream to the the content buffer
and the logger.
|
protected void |
log(String output)
If a logger has been specified, the output is written to the logger using
the defined log level.
|
void |
run() |
activeCount, checkAccess, clone, 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, yieldpublic LoggingThread(InputStream inputStream, VisalloLogger logger, String prefix)
public LoggingThread(InputStream inputStream, OutputStream redirect, VisalloLogger logger, StringBuffer contentBuffer, String prefix)
inputStream - the input stream to read fromredirect - a stream to also redirect the captured output tologger - the logger to append tocontentBuffer - the buffer to write the captured output toprotected void append(String output)
output - the stream outputprotected void log(String output)
output - the stream outputCopyright © 2013–2017 V5 Analytics. All rights reserved.