Class Debug

java.lang.Object
org.ofbiz.core.util.Debug

public final class Debug extends Object
Configurable Debug logging wrapper class
  • Field Details

  • Constructor Details

    • Debug

      public Debug()
  • Method Details

    • getLogger

      public static org.slf4j.Logger getLogger(String module)
    • getPrintStream

      public static PrintStream getPrintStream()
    • setPrintStream

      public static void setPrintStream(PrintStream printStream)
    • getPrintWriter

      public static PrintWriter getPrintWriter()
    • getLevelFromString

      public static Integer getLevelFromString(String levelName)
      Gets an Integer representing the level number from a String representing the level name; will return null if not found
    • getLevelFromStringWithDefault

      public static int getLevelFromStringWithDefault(String levelName)
      Gets an int representing the level number from a String representing the level name; if level not found defaults to Debug.INFO
    • log

      public static void log(int level, Throwable t, String msg, String module)
    • log

      public static void log(int level, Throwable t, String msg, String module, String callingClass)
    • log

      public static void log(int level, Throwable t, String msg, String module, String callingClass, Object... params)
    • isOn

      public static boolean isOn(int level)
    • log

      public static void log(String msg)
    • log

      public static void log(String msg, String module)
    • log

      public static void log(Throwable t)
    • log

      public static void log(Throwable t, String msg)
    • log

      public static void log(Throwable t, String msg, String module)
    • verboseOn

      public static boolean verboseOn()
    • logVerbose

      public static void logVerbose(String msg)
    • logVerbose

      public static void logVerbose(String msg, String module)
    • logVerbose

      public static void logVerbose(Throwable t)
    • logVerbose

      public static void logVerbose(Throwable t, String msg)
    • logVerbose

      public static void logVerbose(Throwable t, String msg, String module)
    • timingOn

      public static boolean timingOn()
    • logTiming

      public static void logTiming(String msg)
    • logTiming

      public static void logTiming(String msg, String module)
    • logTiming

      public static void logTiming(Throwable t)
    • logTiming

      public static void logTiming(Throwable t, String msg)
    • logTiming

      public static void logTiming(Throwable t, String msg, String module)
    • infoOn

      public static boolean infoOn()
    • logInfo

      public static void logInfo(String msg)
    • logInfo

      public static void logInfo(String msg, String module)
    • logInfo

      public static void logInfo(Throwable t)
    • logInfo

      public static void logInfo(Throwable t, String msg)
    • logInfo

      public static void logInfo(Throwable t, String msg, String module)
    • importantOn

      public static boolean importantOn()
    • logImportant

      public static void logImportant(String msg)
    • logImportant

      public static void logImportant(String msg, String module)
    • logImportant

      public static void logImportant(Throwable t)
    • logImportant

      public static void logImportant(Throwable t, String msg)
    • logImportant

      public static void logImportant(Throwable t, String msg, String module)
    • warningOn

      public static boolean warningOn()
    • logWarning

      public static void logWarning(String msg)
    • logWarning

      public static void logWarning(String msg, String module)
    • logWarning

      public static void logWarning(Throwable t)
    • logWarning

      public static void logWarning(Throwable t, String msg)
    • logWarning

      public static void logWarning(Throwable t, String msg, String module)
    • errorOn

      public static boolean errorOn()
    • logError

      public static void logError(String msg)
    • logError

      public static void logError(String msg, String module)
    • logError

      public static void logError(Throwable t)
    • logError

      public static void logError(Throwable t, String msg)
    • logError

      public static void logError(Throwable t, String msg, String module)
    • fatalOn

      public static boolean fatalOn()
    • logFatal

      public static void logFatal(String msg)
    • logFatal

      public static void logFatal(String msg, String module)
    • logFatal

      public static void logFatal(Throwable t)
    • logFatal

      public static void logFatal(Throwable t, String msg)
    • logFatal

      public static void logFatal(Throwable t, String msg, String module)
    • set

      public static void set(int level, boolean on)