Class Debug

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

public class Debug extends Object
Class used to selectivly enable debug statements
  • Field Details

    • m_level

      private static int m_level
  • Constructor Details

    • Debug

      public Debug()
  • Method Details

    • 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, String msg)
      Print the message if its debug level is enabled