support143
Class Debug

java.lang.Object
  |
  +--support143.Debug

public class Debug
extends java.lang.Object

Debug control class globally available to an application that wishes to conditionally generate helpful debugging messages.


Constructor Summary
protected Debug()
          Sole constructor.
 
Method Summary
static void msg(int priority, java.lang.Object s)
          Displays a debug message (or more generally object) of the specified priority.
static int setDebugLevel(int level)
          Changes the current debug level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Debug

protected Debug()
Sole constructor.

Method Detail

setDebugLevel

public static int setDebugLevel(int level)
Changes the current debug level.

Parameters:
level - the new level
Returns:
the previous level.

msg

public static void msg(int priority,
                       java.lang.Object s)
Displays a debug message (or more generally object) of the specified priority.

Parameters:
priority - (lower values mean higher priority)
s - message displayed if priority is <= current debug level.