Package org.apache.ofbiz.base.util
Class Debug
java.lang.Object
org.apache.ofbiz.base.util.Debug
Configurable Debug logging wrapper class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
errorOn()
static boolean
fatalOn()
static boolean
get
(int level) static Integer
getLevelFromString
(String levelName) Gets an Integer representing the level number from a String representing the level name; will return null if not foundstatic boolean
static boolean
infoOn()
static boolean
isOn
(int level) static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
logImportant
(String msg, String module) static void
logImportant
(String msg, String module, Object... params) static void
logImportant
(Throwable t, String module) static void
logImportant
(Throwable t, String msg, String module) static void
logImportant
(Throwable t, String msg, String module, Object... params) static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
static void
logVerbose
(String msg, String module) static void
logVerbose
(String msg, String module, Object... params) static void
logVerbose
(Throwable t, String module) static void
logVerbose
(Throwable t, String msg, String module) static void
logVerbose
(Throwable t, String msg, String module, Object... params) static void
logWarning
(String msg, String module) static void
logWarning
(String msg, String module, Object... params) static void
logWarning
(Throwable t, String module) static void
logWarning
(Throwable t, String msg, String module) static void
logWarning
(Throwable t, String msg, String module, Object... params) static void
set
(int level, boolean on) static boolean
timingOn()
static boolean
static boolean
-
Field Details
-
ALWAYS
public static final int ALWAYS- See Also:
-
VERBOSE
public static final int VERBOSE- See Also:
-
TIMING
public static final int TIMING- See Also:
-
INFO
public static final int INFO- See Also:
-
IMPORTANT
public static final int IMPORTANT- See Also:
-
WARNING
public static final int WARNING- See Also:
-
ERROR
public static final int ERROR- See Also:
-
FATAL
public static final int FATAL- See Also:
-
-
Constructor Details
-
Debug
public Debug()
-
-
Method Details
-
getLevelFromString
Gets an Integer representing the level number from a String representing the level name; will return null if not found -
log
-
log
-
log
-
log
-
isOn
public static boolean isOn(int level) -
log
-
log
-
log
-
log
-
log
-
log
-
log
-
log
-
verboseOn
public static boolean verboseOn() -
logVerbose
-
logVerbose
-
logVerbose
-
logVerbose
-
logVerbose
-
timingOn
public static boolean timingOn() -
logTiming
-
logTiming
-
logTiming
-
logTiming
-
logTiming
-
infoOn
public static boolean infoOn() -
logInfo
-
logInfo
-
logInfo
-
logInfo
-
logInfo
-
importantOn
public static boolean importantOn() -
logImportant
-
logImportant
-
logImportant
-
logImportant
-
logImportant
-
warningOn
public static boolean warningOn() -
logWarning
-
logWarning
-
logWarning
-
logWarning
-
logWarning
-
errorOn
public static boolean errorOn() -
logError
-
logError
-
logError
-
logError
-
logError
-
fatalOn
public static boolean fatalOn() -
logFatal
-
logFatal
-
logFatal
-
logFatal
-
logFatal
-
set
public static void set(int level, boolean on) -
get
public static boolean get(int level)
-