org.ipdr.utils
Class Debug

java.lang.Object
  extended by org.ipdr.utils.Debug

public class Debug
extends java.lang.Object

This class is added to On and Off the functionality of print information on console.


Field Summary
static int DEBUG
          Int representing log level as DEBUG
static boolean debug_
          Flag for displaying variable values
static int ERROR
          Int representing log level as ERROR
static boolean error_
          Flag for displaying errors
static int INFO
          Int representing log level as INFO
static boolean info_
          Flag for displaying information
 
Constructor Summary
Debug()
          Default Constructor.
 
Method Summary
static void logLevel(int[] logLevel)
          This method will be called by the other classes with Int array to choose the Debug Option.
static void write(int mode, java.lang.String strToBeWritten)
          Method to printout on console depending on the debug mode invoked by the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

info_

public static boolean info_
Flag for displaying information


debug_

public static boolean debug_
Flag for displaying variable values


error_

public static boolean error_
Flag for displaying errors


INFO

public static final int INFO
Int representing log level as INFO

See Also:
Constant Field Values

DEBUG

public static final int DEBUG
Int representing log level as DEBUG

See Also:
Constant Field Values

ERROR

public static final int ERROR
Int representing log level as ERROR

See Also:
Constant Field Values
Constructor Detail

Debug

public Debug()
Default Constructor.

Method Detail

write

public static void write(int mode,
                         java.lang.String strToBeWritten)
Method to printout on console depending on the debug mode invoked by the user.


logLevel

public static void logLevel(int[] logLevel)
This method will be called by the other classes with Int array to choose the Debug Option.