|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.io.VT100ConsoleReporter
public class VT100ConsoleReporter
This is a Reporter that uses VT100 codes to hilight different types of messages. Debug messages are bold; warning and error messages are inverted. This agent replaces the default Reporter.
| Field Summary | |
|---|---|
protected static java.lang.String |
BOLD
|
protected static java.lang.String |
DEBUG_AFTER
|
protected static java.lang.String |
DEBUG_BEFORE
|
protected static java.lang.String |
ERROR_AFTER
|
protected static java.lang.String |
ERROR_BEFORE
|
protected static java.lang.String |
INVERSE
|
protected static java.lang.String |
NORMAL
|
protected static java.lang.String |
PRINTLN_AFTER
|
protected static java.lang.String |
PRINTLN_BEFORE
|
protected static java.text.SimpleDateFormat |
SDF
|
protected java.lang.Object |
synchObject
|
protected static java.lang.String |
WARNING_AFTER
|
protected static java.lang.String |
WARNING_BEFORE
|
| Constructor Summary | |
|---|---|
VT100ConsoleReporter()
|
|
| Method Summary | |
|---|---|
void |
debug(java.lang.Object objectRef,
java.lang.String message)
Use this method to report an event for debugging. |
void |
error(java.lang.Object objectRef,
java.lang.String message)
Use this method to report a critical error message. |
void |
error(java.lang.Object objectRef,
java.lang.String message,
java.lang.Exception e)
Use this method to report a critical error with an Exception. |
void |
println(java.lang.Object objectRef,
java.lang.String message)
Use this method to report an event message. |
void |
warning(java.lang.Object objectRef,
java.lang.String message)
Use this method to report a warning message. |
void |
warning(java.lang.Object objectRef,
java.lang.String message,
java.lang.Exception e)
Use this method to report a warning message with an Exception. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.text.SimpleDateFormat SDF
protected static final java.lang.String NORMAL
protected static final java.lang.String BOLD
protected static final java.lang.String INVERSE
protected static final java.lang.String DEBUG_BEFORE
protected static final java.lang.String DEBUG_AFTER
protected static final java.lang.String ERROR_BEFORE
protected static final java.lang.String ERROR_AFTER
protected static final java.lang.String PRINTLN_BEFORE
protected static final java.lang.String PRINTLN_AFTER
protected static final java.lang.String WARNING_BEFORE
protected static final java.lang.String WARNING_AFTER
protected final java.lang.Object synchObject
| Constructor Detail |
|---|
public VT100ConsoleReporter()
| Method Detail |
|---|
public void debug(java.lang.Object objectRef,
java.lang.String message)
debug in interface ReporterInterface
public void warning(java.lang.Object objectRef,
java.lang.String message)
warning in interface ReporterInterface
public void warning(java.lang.Object objectRef,
java.lang.String message,
java.lang.Exception e)
warning in interface ReporterInterface
public void error(java.lang.Object objectRef,
java.lang.String message)
error in interface ReporterInterface
public void error(java.lang.Object objectRef,
java.lang.String message,
java.lang.Exception e)
error in interface ReporterInterface
public void println(java.lang.Object objectRef,
java.lang.String message)
println in interface ReporterInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||