com.arjuna.common.util.logging
Class DebugLevel
java.lang.Object
com.arjuna.common.util.logging.DebugLevel
public class DebugLevel
- extends java.lang.Object
The DebugLevel class provides default finer debugging value to determine if finer
debugging is allowed or not. The various levels of common debugging that are available:
- NO_DEBUGGING = 0x0 (no debugging).
- CONSTRUCTORS = 0x0001 (only output from constructors).
- DESTRUCTORS = 0x0002 (only output from finalizers).
- CONSTRUCT_AND_DESTRUCT = CONSTRUCTORS | DESTRUCTORS.
- FUNCTIONS = 0x0010 (only output from methods).
- OPERATORS = 0x0020 (only output from methods such as
equals, notEquals
).
- FUNCS_AND_OPS = FUNCTIONS | OPERATORS.
- ALL_NON_TRIVIAL = CONSTRUCT_AND_DESTRUCT | FUNCTIONS | OPERATORS.
- TRIVIAL_FUNCS = 0x0100 (only output from trivial methods).
- TRIVIAL_OPERATORS = 0x0200 (only output from trivial operators).
- ALL_TRIVIAL = TRIVIAL_FUNCS | TRIVIAL_OPERATORS.
- ERROR_MESSAGES = 0x0400 (only output from debugging error/warning messages).
- FULL_DEBUGGING = 0xffff (output all debugging messages).
- Since:
- 1.0
- Version:
- $id$
- Author:
- Malik SAHEB - malik.saheb@arjuna.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_DEBUGGING
public static final long NO_DEBUGGING
- See Also:
- Constant Field Values
CONSTRUCTORS
public static final long CONSTRUCTORS
- See Also:
- Constant Field Values
DESTRUCTORS
public static final long DESTRUCTORS
- See Also:
- Constant Field Values
CONSTRUCT_AND_DESTRUCT
public static final long CONSTRUCT_AND_DESTRUCT
- See Also:
- Constant Field Values
FUNCTIONS
public static final long FUNCTIONS
- See Also:
- Constant Field Values
OPERATORS
public static final long OPERATORS
- See Also:
- Constant Field Values
FUNCS_AND_OPS
public static final long FUNCS_AND_OPS
- See Also:
- Constant Field Values
ALL_NON_TRIVIAL
public static final long ALL_NON_TRIVIAL
- See Also:
- Constant Field Values
TRIVIAL_FUNCS
public static final long TRIVIAL_FUNCS
- See Also:
- Constant Field Values
TRIVIAL_OPERATORS
public static final long TRIVIAL_OPERATORS
- See Also:
- Constant Field Values
ALL_TRIVIAL
public static final long ALL_TRIVIAL
- See Also:
- Constant Field Values
ERROR_MESSAGES
public static final long ERROR_MESSAGES
- See Also:
- Constant Field Values
FULL_DEBUGGING
public static final long FULL_DEBUGGING
- See Also:
- Constant Field Values
DebugLevel
public DebugLevel()
getLevel
public long getLevel(java.lang.String level)
- Parameters:
level
- is the string representation of the Level
- Returns:
- the Finer Debugging Value associated with string representation
printString
public java.lang.String printString(long level)
- Parameters:
level
- is the value of the provided Level
- Returns:
- the string representation of the finer debugging level.