public final class Debug extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ALWAYS |
static int |
conf_level |
static DateFormat |
dateFormat |
static int |
ERROR |
static int |
FATAL |
static int |
IMPORTANT |
static int |
INFO |
static org.apache.logging.log4j.Level[] |
levelObjs |
static String[] |
levelProps |
static String[] |
levels |
static String |
LOG |
static String |
LOG4J |
protected static PrintStream |
printStream |
protected static PrintWriter |
printWriter |
static String |
SETUPNAME |
static String |
SETUPVALUE |
static int |
TIMING |
static boolean |
useLog4J |
static int |
VERBOSE |
static int |
WARNING |
| 构造器和说明 |
|---|
Debug() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
errorOn() |
static boolean |
fatalOn() |
static org.apache.logging.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(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 |
setPrintStream(PrintStream printStream) |
static boolean |
timingOn() |
static boolean |
verboseOn() |
static boolean |
warningOn() |
public static boolean useLog4J
public static DateFormat dateFormat
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 int conf_level
public static final String[] levels
public static final String[] levelProps
public static final org.apache.logging.log4j.Level[] levelObjs
protected static PrintStream printStream
protected static PrintWriter printWriter
public static PrintStream getPrintStream()
public static void setPrintStream(PrintStream printStream)
public static PrintWriter getPrintWriter()
public static org.apache.logging.log4j.Logger getLogger(String module)
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)
Copyright © 2018. All rights reserved.