public class Debug
extends java.lang.Object
Change the value of the DEBUG_LEVEL constant using a system property: simpledb.Debug. For example, on the command line, use -Dsimpledb.Debug=x, or simply -Dsimpledb.Debug to enable it at level 0. The log(level, message, ...) method will print to standard output if the level number is less than or equal to the currently set DEBUG_LEVEL.
Modifier and Type | Field and Description |
---|---|
private static int |
DEBUG_LEVEL |
private static int |
DEFAULT_LEVEL |
Constructor and Description |
---|
Debug() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isEnabled() |
static boolean |
isEnabled(int level) |
static void |
log(int level,
java.lang.String message,
java.lang.Object... args)
Log message if the log level >= level.
|
static void |
log(java.lang.String message,
java.lang.Object... args)
Logs message at the default log level.
|
private static final int DEBUG_LEVEL
private static final int DEFAULT_LEVEL
public static void log(int level, java.lang.String message, java.lang.Object... args)
public static boolean isEnabled(int level)
public static boolean isEnabled()
public static void log(java.lang.String message, java.lang.Object... args)