public final class Debug extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ALWAYS |
static int |
ERROR |
static int |
FATAL |
static int |
IMPORTANT |
static int |
INFO |
static org.apache.log4j.Level[] |
levelObjs |
protected static boolean[] |
levelOnCache |
static String[] |
levelProps |
static String[] |
levels |
protected static Map<String,Integer> |
levelStringMap |
static String |
noModuleModule |
protected static PrintStream |
printStream |
protected static PrintWriter |
printWriter |
static int |
TIMING |
protected static boolean |
useLevelOnCache |
static boolean |
useLog4J |
static int |
VERBOSE |
static int |
WARNING |
| Constructor and Description |
|---|
Debug() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
errorOn() |
static boolean |
fatalOn() |
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
|
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
|
static org.apache.log4j.Logger |
getLogger(String module) |
static PrintStream |
getPrintStream() |
static PrintWriter |
getPrintWriter() |
static boolean |
importantOn() |
static boolean |
infoOn() |
static boolean |
isOn(int level) |
static void |
log(int level,
Throwable t,
String msg,
String module) |
static void |
log(int level,
Throwable t,
String msg,
String module,
String callingClass) |
static void |
log(String msg) |
static void |
log(String msg,
String module) |
static void |
log(Throwable t) |
static void |
log(Throwable t,
String msg) |
static void |
log(Throwable t,
String msg,
String module) |
static void |
logError(String msg) |
static void |
logError(String msg,
String module) |
static void |
logError(Throwable t) |
static void |
logError(Throwable t,
String msg) |
static void |
logError(Throwable t,
String msg,
String module) |
static void |
logFatal(String msg) |
static void |
logFatal(String msg,
String module) |
static void |
logFatal(Throwable t) |
static void |
logFatal(Throwable t,
String msg) |
static void |
logFatal(Throwable t,
String msg,
String module) |
static void |
logImportant(String msg) |
static void |
logImportant(String msg,
String module) |
static void |
logImportant(Throwable t) |
static void |
logImportant(Throwable t,
String msg) |
static void |
logImportant(Throwable t,
String msg,
String module) |
static void |
logInfo(String msg) |
static void |
logInfo(String msg,
String module) |
static void |
logInfo(Throwable t) |
static void |
logInfo(Throwable t,
String msg) |
static void |
logInfo(Throwable t,
String msg,
String module) |
static void |
logTiming(String msg) |
static void |
logTiming(String msg,
String module) |
static void |
logTiming(Throwable t) |
static void |
logTiming(Throwable t,
String msg) |
static void |
logTiming(Throwable t,
String msg,
String module) |
static void |
logVerbose(String msg) |
static void |
logVerbose(String msg,
String module) |
static void |
logVerbose(Throwable t) |
static void |
logVerbose(Throwable t,
String msg) |
static void |
logVerbose(Throwable t,
String msg,
String module) |
static void |
logWarning(String msg) |
static void |
logWarning(String msg,
String module) |
static void |
logWarning(Throwable t) |
static void |
logWarning(Throwable t,
String msg) |
static void |
logWarning(Throwable t,
String msg,
String module) |
static void |
set(int level,
boolean on) |
static void |
setPrintStream(PrintStream printStream) |
static boolean |
timingOn() |
static boolean |
verboseOn() |
static boolean |
warningOn() |
public static final boolean useLog4J
public static final String noModuleModule
public static final int ALWAYS
public static final int VERBOSE
public static final int TIMING
public static final int INFO
public static final int IMPORTANT
public static final int WARNING
public static final int ERROR
public static final int FATAL
public static final String[] levels
public static final String[] levelProps
public static final org.apache.log4j.Level[] levelObjs
protected static PrintStream printStream
protected static PrintWriter printWriter
protected static boolean[] levelOnCache
protected static final boolean useLevelOnCache
public static PrintStream getPrintStream()
public static void setPrintStream(PrintStream printStream)
public static PrintWriter getPrintWriter()
public static org.apache.log4j.Logger getLogger(String module)
public static Integer getLevelFromString(String levelName)
public static int getLevelFromStringWithDefault(String levelName)
public static boolean isOn(int level)
public static void log(String msg)
public static void log(Throwable t)
public static boolean verboseOn()
public static void logVerbose(String msg)
public static void logVerbose(Throwable t)
public static boolean timingOn()
public static void logTiming(String msg)
public static void logTiming(Throwable t)
public static boolean infoOn()
public static void logInfo(String msg)
public static void logInfo(Throwable t)
public static boolean importantOn()
public static void logImportant(String msg)
public static void logImportant(Throwable t)
public static boolean warningOn()
public static void logWarning(String msg)
public static void logWarning(Throwable t)
public static boolean errorOn()
public static void logError(String msg)
public static void logError(Throwable t)
public static boolean fatalOn()
public static void logFatal(String msg)
public static void logFatal(Throwable t)
public static void set(int level,
boolean on)
Copyright © 2015 Atlassian. All rights reserved.