f00f.net.irc.martyr
Class Debug

java.lang.Object
  |
  +--f00f.net.irc.martyr.Debug

public class Debug
extends java.lang.Object

Aids in debugging and logging for martyr.


Field Summary
static int BAD
          Some kind of badness is going on here, but it is within acceptable limits and handled nicely.
static int CRITICAL
          Something went wrong, maybe not our fault.
static int EXCESSIVE
          Excessive information about internals that no human should need to know or care about.
static int FAULT
          Signals in internal fault, similar to failling an assertion but the program doesn't halt.
static int NORMAL
          Information about normal procedures.
static int VERBOSE
          Information about some details of normal procedures.
 
Constructor Summary
Debug()
           
 
Method Summary
static java.io.PrintStream getOutputStream()
           
static void println(java.lang.Object sender, java.lang.String message, int msgLevel)
           
static void println(java.lang.String sender, java.lang.String message, int msgLevel)
          Writes out the message if msgLevel is less than or equal to the internal level.
static void setDebugLevel(int level)
          Sets the debug level so that all messages equal to or less than 'level' will be output.
static void setOutputStream(java.io.PrintStream out)
          Sets the output stream to where the debug messages will go.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FAULT

public static final int FAULT
Signals in internal fault, similar to failling an assertion but the program doesn't halt. Exception thrown.

CRITICAL

public static final int CRITICAL
Something went wrong, maybe not our fault. Exception thrown.

BAD

public static final int BAD
Some kind of badness is going on here, but it is within acceptable limits and handled nicely.

NORMAL

public static final int NORMAL
Information about normal procedures.

VERBOSE

public static final int VERBOSE
Information about some details of normal procedures.

EXCESSIVE

public static final int EXCESSIVE
Excessive information about internals that no human should need to know or care about.
Constructor Detail

Debug

public Debug()
Method Detail

setOutputStream

public static void setOutputStream(java.io.PrintStream out)
Sets the output stream to where the debug messages will go.

getOutputStream

public static java.io.PrintStream getOutputStream()

setDebugLevel

public static void setDebugLevel(int level)
Sets the debug level so that all messages equal to or less than 'level' will be output.

println

public static void println(java.lang.String sender,
                           java.lang.String message,
                           int msgLevel)
Writes out the message if msgLevel is less than or equal to the internal level.

println

public static void println(java.lang.Object sender,
                           java.lang.String message,
                           int msgLevel)


Copyright © 2000,2001,2002,2003 f00f networks.