guk.editIM
Class DebugEditIM

java.lang.Object
  |
  +--guk.editIM.DebugEditIM

public class DebugEditIM
extends java.lang.Object

Helper class for debug messages. Used by all EditIM parts that show more than plain "Initializing... done." messages.


Field Summary
(package private) static int debug
          debug level: -1 mute, 0 normal, 1 verbose, 2 very verbose, 3 wow! recommended setting: 0 or 1.
 
Constructor Summary
DebugEditIM()
           
 
Method Summary
static void println(int level, java.lang.String text)
          The only interface is this static method ...
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

debug

static final int debug
debug level: -1 mute, 0 normal, 1 verbose, 2 very verbose, 3 wow! recommended setting: 0 or 1.
Constructor Detail

DebugEditIM

public DebugEditIM()
Method Detail

println

public static void println(int level,
                           java.lang.String text)
The only interface is this static method ... which makes creative use of the IMPLEMENTATION DEPENDANT printStackTrace method to print the name of the one who calls it! (from Java 1.4.0 on, we could use methods MEANT for doing this).
Parameters:
level - The verbosity level: If it is at most as high as the debug level, the text will be printed. Too verbose requests are ignored.
text - The text that will be printed, after prefixing the name of the class and method of the caller (but not the package name of it, just the last part of the name).