|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.afcs.warts.util.WartsLogger
The WartsLogger class provides logging facilities
for WARTS application. Currently this class is a custom implementation of
select methods in the java.util.logging.Logger
from JDK 1.4.1.
This means that WARTS can be run using JDK 1.3.1, but trivially changed to
use the java.util.logging
API at a later date by simply
changing the implementation of this class.
LICENSE: This code is released to the public domain and may be used for any purpose whatsoever without permission or acknowledgment.
Method Summary | |
static void |
debuggingOff()
Turns off debugging, so that nothing will be printed by future calls to fine(String) . |
static void |
debuggingOn()
Turns on debugging, so that future calls to fine(String) will
cause the message to be printed. |
static void |
fine(java.lang.String message)
Logs a fine (debug) message, if debugging is on. |
static void |
flush()
Flushes the current logging buffer(s). |
static void |
info(java.lang.String message)
Logs a fine (debug) message, if debugging is on. |
static boolean |
isDebuggingOn()
Returns true if debugging is currently on. |
static void |
severe(java.lang.String message)
Logs a info message. |
static void |
warning(java.lang.String message)
Logs a warning message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void debuggingOff()
fine(String)
.
public static void debuggingOn()
fine(String)
will
cause the message to be printed.
public static boolean isDebuggingOn()
public static void fine(java.lang.String message)
message
- The message to log.public static void info(java.lang.String message)
message
- The message to log.public static void severe(java.lang.String message)
message
- The message to log.public static void warning(java.lang.String message)
message
- The message to log.public static void flush()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |