| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjwo.utils.OutputLogger
Allows standard output and standard error output to be redirected to an arbitrary log file. Useful for recording detailed error/usage ouput, 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 defult logger output.  | 
|
OutputLogger(Logger logger)
Redirects 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()
public OutputLogger(Logger logger)
logger - Logger that will capture output.| 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 | |||||||||