Copyright © Rasmus Sten and contributors, 1997-2004

nu.dll.lyskom
Class Debug

java.lang.Object
  |
  +--nu.dll.lyskom.Debug

public class Debug
extends java.lang.Object

Helper class to aid debug tracing. The println() and print() methods has no effect unless the system property "lattekom.debug" is set to "true".


Field Summary
static boolean ENABLED
          true iff the "lattekom.debug" system property is non-null and equal to "true".
 
Constructor Summary
Debug()
           
 
Method Summary
static java.lang.String getPropertyKey()
           
static void print(java.lang.String msg)
          Prints a message to stderr if ENABLED is true.
static void println(java.lang.String msg)
          Prints a message to stderr if ENABLED is true, terminating with a linefeed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENABLED

public static boolean ENABLED
true iff the "lattekom.debug" system property is non-null and equal to "true".

Constructor Detail

Debug

public Debug()
Method Detail

println

public static void println(java.lang.String msg)
Prints a message to stderr if ENABLED is true, terminating with a linefeed.


print

public static void print(java.lang.String msg)
Prints a message to stderr if ENABLED is true.


getPropertyKey

public static java.lang.String getPropertyKey()

Copyright © Rasmus Sten and contributors, 1997-2004