com.softwareag.tamino.db.api.common
Class TDebug
java.lang.Object
com.softwareag.tamino.db.api.common.TDebug
public class TDebug
- extends java.lang.Object
TDebug is a little helper for low level console debugging. This method
should be the preferred way instead of using System.out.print...(), because
this method avoids unwanted console output.
It is not a replacement for logging! It shall just be used while debugging.
It can be switched on/off via a system property. Default is off.
The preferred usage should be:
if (TDebug.isOn() ) TDebug.println( "Whatever" );
However this:
TDebug.println( "Whatever" );
does it also, except that it does not avoid expression evaluation!
- Version:
- $Revision: 1.1 $
- Author:
- Stefan Liebig
Method Summary |
static boolean |
isOn()
|
static void |
print(java.lang.String toPrint)
|
static void |
println(java.lang.String toPrint)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG_SYSTEM_PROPERTY
public static final java.lang.String DEBUG_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
TDebug
public TDebug()
isOn
public static boolean isOn()
print
public static void print(java.lang.String toPrint)
println
public static void println(java.lang.String toPrint)
Copyright (c) 2013 Software AG. All Rights Reserved.