Package com.netscape.jndi.ldap.common
Class Debug
java.lang.Object
com.netscape.jndi.ldap.common.Debug
Class used to selectivly enable debug statements
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
Get the debug level.static void
Print the message if its debug level is enabledstatic void
setDebugLevel
(int level) Set the debug level.
-
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
Print the message if its debug level is enabled
-