com.jdon.util
类 Debug
java.lang.Object
com.jdon.util.Debug
public final class Debug
- extends Object
Configurable Debug logging wrapper class
- 版本:
- 1.0
- 作者:
- David E. Jones, Andy Zeneski
|
方法摘要 |
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()
|
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final String LOG
- 另请参见:
- 常量字段值
LOG4J
public static final String LOG4J
- 另请参见:
- 常量字段值
SETUPNAME
public static final String SETUPNAME
- 另请参见:
- 常量字段值
SETUPVALUE
public static final String SETUPVALUE
- 另请参见:
- 常量字段值
useLog4J
public static boolean useLog4J
dateFormat
public static DateFormat dateFormat
ALWAYS
public static final int ALWAYS
- 另请参见:
- 常量字段值
VERBOSE
public static final int VERBOSE
- 另请参见:
- 常量字段值
TIMING
public static final int TIMING
- 另请参见:
- 常量字段值
INFO
public static final int INFO
- 另请参见:
- 常量字段值
IMPORTANT
public static final int IMPORTANT
- 另请参见:
- 常量字段值
WARNING
public static final int WARNING
- 另请参见:
- 常量字段值
ERROR
public static final int ERROR
- 另请参见:
- 常量字段值
FATAL
public static final int FATAL
- 另请参见:
- 常量字段值
conf_level
public static int conf_level
levels
public static final String[] levels
levelProps
public static final String[] levelProps
levelObjs
public static final org.apache.logging.log4j.Level[] levelObjs
printStream
protected static PrintStream printStream
printWriter
protected static PrintWriter printWriter
Debug
public Debug()
getPrintStream
public static PrintStream getPrintStream()
setPrintStream
public static void setPrintStream(PrintStream printStream)
getPrintWriter
public static PrintWriter getPrintWriter()
getLogger
public static org.apache.logging.log4j.Logger getLogger(String module)
log
public static void log(int level,
Throwable t,
String msg,
String module)
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)
Copyright © 2013. All Rights Reserved.