Package org.ofbiz.core.util
Class Debug
java.lang.Object
org.ofbiz.core.util.Debug
Configurable Debug logging wrapper class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanerrorOn()static booleanfatalOn()static IntegergetLevelFromString(String levelName) Gets an Integer representing the level number from a String representing the level name; will return null if not foundstatic intgetLevelFromStringWithDefault(String levelName) Gets an int representing the level number from a String representing the level name; if level not found defaults to Debug.INFOstatic org.slf4j.Loggerstatic PrintStreamstatic PrintWriterstatic booleanstatic booleaninfoOn()static booleanisOn(int level) static voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidlogImportant(String msg) static voidlogImportant(String msg, String module) static voidstatic voidlogImportant(Throwable t, String msg) static voidlogImportant(Throwable t, String msg, String module) static voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidlogVerbose(String msg) static voidlogVerbose(String msg, String module) static voidstatic voidlogVerbose(Throwable t, String msg) static voidlogVerbose(Throwable t, String msg, String module) static voidlogWarning(String msg) static voidlogWarning(String msg, String module) static voidstatic voidlogWarning(Throwable t, String msg) static voidlogWarning(Throwable t, String msg, String module) static voidset(int level, boolean on) static voidsetPrintStream(PrintStream printStream) static booleantimingOn()static booleanstatic 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
-
getLogger
-
getPrintStream
-
setPrintStream
-
getPrintWriter
-
getLevelFromString
Gets an Integer representing the level number from a String representing the level name; will return null if not found -
getLevelFromStringWithDefault
Gets an int representing the level number from a String representing the level name; if level not found defaults to Debug.INFO -
log
-
log
-
log
-
isOn
public static boolean isOn(int level) -
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)
-