|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjwo.utils.OutputLogger
public class OutputLogger
Allows standard output and standard error output to be redirected or copied to an arbitrary log file. Useful for recording detailed error/usage output, or for providing an output console available to the client program.
| Field Summary | |
|---|---|
static int |
STANDARD_ERR
Indicates standard error stream. |
static int |
STANDARD_OUT
Indicates standard output stream. |
| Constructor Summary | |
|---|---|
OutputLogger()
Redirects standard and error output to the default logger output. |
|
OutputLogger(boolean isCopied)
Redirects or copies standard and error output to the default logger output. |
|
OutputLogger(Logger logger)
Redirects standard and error output to the given logger. |
|
OutputLogger(Logger logger,
boolean isCopied)
Redirects or copies standard and error output to the given logger. |
|
| Method Summary | |
|---|---|
Logger |
getLogger()
Reports the logger used to capture output. |
static String |
getStackTraceAsString(Exception e)
Reports a full stack trace as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STANDARD_OUT
public static final int STANDARD_ERR
| Constructor Detail |
|---|
public OutputLogger()
jwo.utils' logger.
public OutputLogger(boolean isCopied)
jwo.utils' logger.
isCopied - Output will also be sent to stdout/stderr if true.public OutputLogger(Logger logger)
logger - Logger that will capture output.
public OutputLogger(Logger logger,
boolean isCopied)
logger - Logger that will capture output.isCopied - Output will also be sent to stdout/stderr if true.| Method Detail |
|---|
public static String getStackTraceAsString(Exception e)
e - Exception to store.
public Logger getLogger()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||