com.netscape.jndi.ldap.common
Class Debug

java.lang.Object
  extended by com.netscape.jndi.ldap.common.Debug

public class Debug
extends java.lang.Object

Class used to selectivly enable debug statements


Constructor Summary
Debug()
           
 
Method Summary
static int getDebugLevel()
          Get the debug level.
static void println(int level, java.lang.String msg)
          Print the message if its debug level is enabled
static void setDebugLevel(int level)
          Set the debug level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Debug

public Debug()
Method Detail

setDebugLevel

public static void setDebugLevel(int level)
Set the debug level. To disable debugging set the level to -1


getDebugLevel

public static int getDebugLevel()
Get the debug level. If -1 is returned, then debugging is disabled


println

public static void println(int level,
                           java.lang.String msg)
Print the message if its debug level is enabled