|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.preprocess.DebugManager
public class DebugManager
Administers the debug-level for all classes.
Copyright Enough Software 2004 - 2008
history
19-Jan-2003 - rob creation
| Field Summary | |
|---|---|
static int |
DEBUG
|
static int |
ERROR
|
static int |
FATAL
|
static int |
INFO
|
static int |
TRACE
|
static int |
UNDEFINED
|
static int |
USER_DEFINED
|
static int |
WARN
|
| Constructor Summary | |
|---|---|
DebugManager(int debugLevel,
boolean verbose)
Creates a new debug manager. |
|
DebugManager(LogSetting setting,
ExtensionManager manager,
Environment environment)
Creates a new debug manager. |
|
DebugManager(String debugLevel,
boolean verbose)
Creates a new debug manager. |
|
| Method Summary | |
|---|---|
void |
addDebugSetting(String pattern,
String level)
Adds a debug setting for a specific class or class-pattern. |
int |
getClassLevel(String className)
Determines the level for a given class. |
String[] |
getDebuggingSymbols(String className)
Creates the J2ME Polish debugging symbols for the specified class. |
int |
getLevelOrder(String level)
Retrieves the order of the given level. |
boolean |
isDebugEnabled(String className,
String levelName)
Checks if for the given class and level the debugging is enabled. |
boolean |
isVerbose()
Determines whether the verbose mode is enabled. |
boolean |
useGui()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNDEFINED
public static final int TRACE
public static final int DEBUG
public static final int INFO
public static final int WARN
public static final int ERROR
public static final int FATAL
public static final int USER_DEFINED
| Constructor Detail |
|---|
public DebugManager(String debugLevel,
boolean verbose)
debugLevel - the basic debug level for all classes,
for which no debug level has been defined, e.g.
"debug", "info", "warn", "error", "fatal" or userdefined.verbose - true when before every debug information the class-name and the
line-number should be printed out.
public DebugManager(int debugLevel,
boolean verbose)
debugLevel - the basic debug level for all classes,
for which no debug level has been defined.verbose - true when before every debug information the class-name and the
line-number should be printed out.DEBUG,
INFO,
WARN,
ERROR,
FATAL
public DebugManager(LogSetting setting,
ExtensionManager manager,
Environment environment)
throws BuildException
setting - The settings for this manager.manager - the extension managerenvironment - the environment settings
BuildException - when the pattern of an included debug-filter is invalid| Method Detail |
|---|
public void addDebugSetting(String pattern,
String level)
throws BuildException
pattern - the class-name or class-pattern. A pattern is like an import-declaration,
e.g. "com.company.package.*"level - the level which should be allowed, e.g. "debug", "info", "warn", "error", "fatal" or userdefined.
BuildException - when the pattern is invalidpublic boolean isVerbose()
public boolean isDebugEnabled(String className,
String levelName)
className - the name of the class, e.g. "com.company.packackge.MyClass"levelName - the level, e.g. "debug", "info", "warn", "error", "fatal" or userdefined.
public int getClassLevel(String className)
className - the name of the class, e.g. "com.company.packackge.MyClass"
public int getLevelOrder(String level)
level - the name of the level, e.g. "debug"
public boolean useGui()
public String[] getDebuggingSymbols(String className)
className - the name of the class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||