com.cometway.io
Class VT100ConsoleReporter

java.lang.Object
  extended by com.cometway.io.VT100ConsoleReporter
All Implemented Interfaces:
ReporterInterface

public class VT100ConsoleReporter
extends java.lang.Object
implements ReporterInterface

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

SDF

protected static final java.text.SimpleDateFormat SDF

NORMAL

protected static final java.lang.String NORMAL
See Also:
Constant Field Values

BOLD

protected static final java.lang.String BOLD
See Also:
Constant Field Values

INVERSE

protected static final java.lang.String INVERSE
See Also:
Constant Field Values

DEBUG_BEFORE

protected static final java.lang.String DEBUG_BEFORE
See Also:
Constant Field Values

DEBUG_AFTER

protected static final java.lang.String DEBUG_AFTER
See Also:
Constant Field Values

ERROR_BEFORE

protected static final java.lang.String ERROR_BEFORE
See Also:
Constant Field Values

ERROR_AFTER

protected static final java.lang.String ERROR_AFTER
See Also:
Constant Field Values

PRINTLN_BEFORE

protected static final java.lang.String PRINTLN_BEFORE
See Also:
Constant Field Values

PRINTLN_AFTER

protected static final java.lang.String PRINTLN_AFTER
See Also:
Constant Field Values

WARNING_BEFORE

protected static final java.lang.String WARNING_BEFORE
See Also:
Constant Field Values

WARNING_AFTER

protected static final java.lang.String WARNING_AFTER
See Also:
Constant Field Values

synchObject

protected final java.lang.Object synchObject
Constructor Detail

VT100ConsoleReporter

public VT100ConsoleReporter()
Method Detail

debug

public void debug(java.lang.Object objectRef,
                  java.lang.String message)
Use this method to report an event for debugging.

Specified by:
debug in interface ReporterInterface

warning

public void warning(java.lang.Object objectRef,
                    java.lang.String message)
Use this method to report a warning message.

Specified by:
warning in interface ReporterInterface

warning

public 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.

Specified by:
warning in interface ReporterInterface

error

public void error(java.lang.Object objectRef,
                  java.lang.String message)
Use this method to report a critical error message.

Specified by:
error in interface ReporterInterface

error

public 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.

Specified by:
error in interface ReporterInterface

println

public void println(java.lang.Object objectRef,
                    java.lang.String message)
Use this method to report an event message.

Specified by:
println in interface ReporterInterface