public class Debug
extends java.lang.Object
Change the value of the DEBUG_LEVEL constant using a system property: sikuli.Debug. For example, on the command line, use -Dsikuli.Debug=x, or simply -Dsikuli.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.
Constructor and Description |
---|
Debug() |
Modifier and Type | Method and Description |
---|---|
long |
endTiming(java.lang.String message) |
static void |
error(java.lang.String message,
java.lang.Object... args) |
static void |
history(java.lang.String message,
java.lang.Object... args) |
static void |
info(java.lang.String message,
java.lang.Object... args) |
static boolean |
isEnabled() |
static boolean |
isEnabled(int level) |
static void |
log(int level,
java.lang.String message,
java.lang.Object... args) |
static void |
log(int level,
java.lang.String prefix,
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.
|
static void |
profile(java.lang.String message,
java.lang.Object... args) |
void |
startTiming(java.lang.String message) |
public static void log(int level, java.lang.String prefix, java.lang.String message, java.lang.Object... args)
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)
public static void history(java.lang.String message, java.lang.Object... args)
public static void info(java.lang.String message, java.lang.Object... args)
public static void error(java.lang.String message, java.lang.Object... args)
public static void profile(java.lang.String message, java.lang.Object... args)
public void startTiming(java.lang.String message)
public long endTiming(java.lang.String message)