marquee.xmlrpc.util
Class Log.DefaultLogBackEnd

java.lang.Object
  extended bymarquee.xmlrpc.util.Log.DefaultLogBackEnd
All Implemented Interfaces:
LogBackEnd
Enclosing class:
Log

public static class Log.DefaultLogBackEnd
extends java.lang.Object
implements LogBackEnd

The default back end sends information to the console. It may include time, thread and exception information. This has to be switched on at compilation time, though.


Field Summary
static boolean LOG_FILE
          Shall we extract file name information from exceptions?
static boolean LOG_THREAD
          Shall we log the calling thread name?
static boolean LOG_TIME
          Shall we log the time?
 
Constructor Summary
Log.DefaultLogBackEnd()
           
 
Method Summary
 void append(java.lang.String type, java.lang.String message)
          Appends a message, according to the LogBackEnd interface.
 void append(java.lang.String type, java.lang.Throwable t)
          Appends an exception message which potentially includes information as to what file and line number the exception occurred at.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_TIME

public static final boolean LOG_TIME
Shall we log the time?

See Also:
Constant Field Values

LOG_THREAD

public static final boolean LOG_THREAD
Shall we log the calling thread name?

See Also:
Constant Field Values

LOG_FILE

public static final boolean LOG_FILE
Shall we extract file name information from exceptions?

See Also:
Constant Field Values
Constructor Detail

Log.DefaultLogBackEnd

public Log.DefaultLogBackEnd()
Method Detail

append

public void append(java.lang.String type,
                   java.lang.String message)
Appends a message, according to the LogBackEnd interface.

Specified by:
append in interface LogBackEnd

append

public void append(java.lang.String type,
                   java.lang.Throwable t)
Appends an exception message which potentially includes information as to what file and line number the exception occurred at. This is unique for this handler.

Specified by:
append in interface LogBackEnd