Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.logging
Class ExceptionFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by de.lmu.ifi.dbs.elki.logging.ExceptionFormatter

public class ExceptionFormatter
extends Formatter

A formatter to format exception messages.

Author:
Arthur Zimek

Field Summary
private static boolean DEBUG
          Holds the class specific debug status.
 
Constructor Summary
ExceptionFormatter()
          Provides an exception formatter for exception messages.
 
Method Summary
 String format(LogRecord record)
          Exception messages are formatted dependent from the debug mode as assigned by DEBUG.
 String getStackTrace(LogRecord record)
           
 
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

private static final boolean DEBUG
Holds the class specific debug status. In this case, the status true is required for complete view of exceptions. If DEBUG is false, only the exception message is printed. Otherwise, the user gets information w.r.t. cause and stacktrace.

See Also:
Constant Field Values
Constructor Detail

ExceptionFormatter

public ExceptionFormatter()
Provides an exception formatter for exception messages.

Method Detail

format

public String format(LogRecord record)
Exception messages are formatted dependent from the debug mode as assigned by DEBUG.

Specified by:
format in class Formatter
See Also:
Formatter.format(java.util.logging.LogRecord)

getStackTrace

public String getStackTrace(LogRecord record)

Release 0.1 (2008-07-10_1838)