public class Debug
extends java.lang.Object
Copyright © 1997, 1998
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.3 $
Modifier and Type | Field and Description |
---|---|
static boolean |
GLOBAL_DEBUG
Whether to compile the library with a standard level of debugging
support.
|
static boolean |
GLOBAL_DEBUG_SLOW
Whether to compile the library with additional debugging support that
is likely to slow it down.
|
static boolean |
GLOBAL_TRACE
Whether to compile the library with tracing support or not.
|
Modifier and Type | Method and Description |
---|---|
static int |
getLevel(java.lang.String label)
Returns the debug level for label.
|
static int |
getLevel(java.lang.String label1,
java.lang.String label2)
Returns the maximum of the debug levels for label1 and label2.
|
static java.io.PrintWriter |
getOutput()
Returns the PrintWriter to which debugging output is to be sent.
|
static boolean |
isTraceable(java.lang.String label)
Return true if tracing is requested for a given class.
|
public static final boolean GLOBAL_TRACE
After changing this field, all classes should be recompiled in order to make sure that the change has taken effect.
public static final boolean GLOBAL_DEBUG
After changing this field, all classes should be recompiled in order to make sure that the change has taken effect.
public static final boolean GLOBAL_DEBUG_SLOW
After changing this field, all classes should be recompiled in order to make sure that the change has taken effect.
public static boolean isTraceable(java.lang.String label)
User indicates this by setting the tracing boolean
property for label in the Cryptix.properties
file. The property's key is "Trace.label
".
label
- The name of a class.Trace.label
.public static int getLevel(java.lang.String label)
Debug.Level.label
".
If this property is not set, "Debug.Level.*
" is
searched next. If neither property is set, or if the first property
found is not a valid decimal integer, then this method returns 0.
public static int getLevel(java.lang.String label1, java.lang.String label2)
public static java.io.PrintWriter getOutput()