sears.tools
Class Trace

java.lang.Object
  extended by sears.tools.Trace

public class Trace
extends java.lang.Object

Class Trace.
Summary:
A class to show soft traces.


Field Summary
static int ALGO_PRIORITY
           
static int DISPLAY_TRACE_LEVEL
           
static int ERROR_PRIORITY
           
static int MESSAGE_PRIORITY
           
static int METHOD_PRIORITY
           
static int WARNING_PRIORITY
           
 
Constructor Summary
Trace()
          Constructor Trace.
 
Method Summary
static void error(java.lang.String message)
          Method trace.
static void trace(java.lang.String message)
          Method trace.
static void trace(java.lang.String message, int level)
          Method trace.
static void warning(java.lang.String message)
          Method trace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_PRIORITY

public static final int ERROR_PRIORITY
See Also:
Constant Field Values

WARNING_PRIORITY

public static final int WARNING_PRIORITY
See Also:
Constant Field Values

MESSAGE_PRIORITY

public static final int MESSAGE_PRIORITY
See Also:
Constant Field Values

METHOD_PRIORITY

public static final int METHOD_PRIORITY
See Also:
Constant Field Values

ALGO_PRIORITY

public static final int ALGO_PRIORITY
See Also:
Constant Field Values

DISPLAY_TRACE_LEVEL

public static int DISPLAY_TRACE_LEVEL
Constructor Detail

Trace

public Trace()
Constructor Trace.
Summary:
Constructor of the class.

Method Detail

trace

public static void trace(java.lang.String message,
                         int level)
Method trace.
Summary:
Display a message using a priority level.

Parameters:
message - The message to display.
level - The message level.

trace

public static void trace(java.lang.String message)
Method trace.
Summary:
Trace a message with default priority level: MESSAGE_PRIORITY

Parameters:
message - The message to trace.

warning

public static void warning(java.lang.String message)
Method trace.
Summary:
Trace a message with Warning priority level.

Parameters:
message - The message to trace.

error

public static void error(java.lang.String message)
Method trace.
Summary:
Trace a message with error priority level.

Parameters:
message - The message to trace.