|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.wvtool.util.WVToolLogger
public abstract class WVToolLogger
Singelton logging class. The log should be invoked by first calling WVToolLogger.getGlobalLogger() and then to invoke the logging operations on this object.
Field Summary | |
---|---|
static int |
EXCEPTION
|
private static WVToolLogger |
logger
|
private static int |
logLevel
|
static int |
STATUS
|
static int |
WARNING
|
Constructor Summary | |
---|---|
WVToolLogger()
|
Method Summary | |
---|---|
static WVToolLogger |
getGlobalLogger()
Get the global logging instance. |
int |
getLogLevel()
Get the current log level. |
void |
logException(java.lang.String s,
java.lang.Exception e)
Log an exception. |
abstract void |
logMessage(java.lang.String s,
int level)
Log a message, if the current log level is equal or higher than the one of the message. |
static void |
setGlobalLogger(WVToolLogger logger)
Set the global logging instance. |
void |
setLogLevel(int minLogLevel)
Set the log level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STATUS
public static final int WARNING
public static final int EXCEPTION
private static WVToolLogger logger
private static int logLevel
Constructor Detail |
---|
public WVToolLogger()
Method Detail |
---|
public abstract void logMessage(java.lang.String s, int level)
s
- the messagelevel
- the loglevel of the messagepublic void logException(java.lang.String s, java.lang.Exception e)
s
- some additional messagee
- the exception to logpublic void setLogLevel(int minLogLevel)
minLogLevel
- the minimal log levelpublic int getLogLevel()
public static WVToolLogger getGlobalLogger()
public static void setGlobalLogger(WVToolLogger logger)
logger
- the logger
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |