org.afcs.warts.util
Class WartsLogger

java.lang.Object
  extended byorg.afcs.warts.util.WartsLogger

public final class WartsLogger
extends java.lang.Object

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.

Version:
Last Modified 2 September 2003
Author:
Warren Hedley ( whedley at sdsc dot edu )

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

debuggingOff

public static void debuggingOff()
Turns off debugging, so that nothing will be printed by future calls to fine(String).


debuggingOn

public static void debuggingOn()
Turns on debugging, so that future calls to fine(String) will cause the message to be printed.


isDebuggingOn

public static boolean isDebuggingOn()
Returns true if debugging is currently on.

Returns:
True if debugging is currently on.

fine

public static void fine(java.lang.String message)
Logs a fine (debug) message, if debugging is on.

Parameters:
message - The message to log.

info

public static void info(java.lang.String message)
Logs a fine (debug) message, if debugging is on.

Parameters:
message - The message to log.

severe

public static void severe(java.lang.String message)
Logs a info message.

Parameters:
message - The message to log.

warning

public static void warning(java.lang.String message)
Logs a warning message.

Parameters:
message - The message to log.

flush

public static void flush()
Flushes the current logging buffer(s).