|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jlf.dataMap.DataMapLog
DataMapLog
wraps the Log class to log all DataMap framework
related events. It provides a singleton accessor, along with lots of
handy class method {static} accessors.
Log
Field Summary | |
protected static Log |
singleton
Provides the class variable for the Singleton pattern, to keep track of the one and only instance of this class. |
Constructor Summary | |
protected |
DataMapLog()
Protect the default constructor, this class uses a Singleton pattern. |
Method Summary | |
static void |
criticalError(java.lang.String logString)
Logs a text string at CRITICAL_ERROR_LEVEL This method provides the implementation for a quick accessor to log a critical error, replacing typical calls to System.err.println(). |
static void |
detail(java.lang.String logString)
Logs a text string at DETAIL_LEVEL |
static void |
error(java.lang.String logString)
Logs a text string at ERROR_LEVEL This method provides the implementation for a quick accessor to log a critical error, replacing typical calls to System.err.println(). |
static Log |
getInstance()
Returns the singleton instance of this class. |
static void |
info(java.lang.String logString)
Logs a text string at INFO_LEVEL |
static boolean |
isLoggingEnabledFor(int loggingLevel)
Passthrough method to quick check if you should bother constructing a log message to log at a particular logging level. |
static void |
logString(java.lang.String logString,
int errorLevel)
Logs a text string at the logging level specified. |
static void |
trace(java.lang.String logString)
Logs a text string at TRACE_LEVEL |
static void |
warning(java.lang.String logString)
Logs a text string at WARNING_LEVEL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Log singleton
Constructor Detail |
protected DataMapLog()
Method Detail |
public static Log getInstance()
public static void logString(java.lang.String logString, int errorLevel)
public static void criticalError(java.lang.String logString)
public static void error(java.lang.String logString)
public static void warning(java.lang.String logString)
public static void info(java.lang.String logString)
public static void detail(java.lang.String logString)
public static void trace(java.lang.String logString)
public static boolean isLoggingEnabledFor(int loggingLevel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |