public class DebugCtl
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
DebugCtl.DbgListener
Implementors of this interface, if registered with the
addDbgListener(DbgListener, String, String)
method, can be informed of dynamic changes in the debug flags. |
Modifier and Type | Method and Description |
---|---|
static void |
addDbgListener(DebugCtl.DbgListener l,
java.lang.String categoryName,
java.lang.String tagsToDisplayName)
Register a listener for the specified categories of debug events.
|
static java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> |
getCategoryCodesAndTagNames()
Get the list of known dynamically modifiable debug categories and their tags for locale-specific descriptions.
|
static java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Boolean>> |
getCategorySettings()
Get the list of known dynamically modifiable debug categories and their tags for locale-specific descriptions.
|
static java.lang.String |
getCategoryTag(java.lang.String category)
Get the localization tag name for a description of the category.
|
static boolean |
isDebug()
Indicate if debug messages should be printed out.
|
static boolean |
isDebug(java.lang.String categoryName)
Indicate if a specific category of debug messages should be printed out.
|
static boolean |
isDebugOnly(java.lang.String categoryName)
Indicate if a specific category of debug messages should be printed out.
|
static void |
removeDbgListener(DebugCtl.DbgListener l,
java.lang.String... categoryNames)
Unregister a listener for the specified categories of debug events.
|
static void |
setDebug(java.lang.String categoryName,
boolean setting)
Specify if a specific category of debug messages should be printed out.
|
public static void setDebug(java.lang.String categoryName, boolean setting)
categoryName
- String name of category to enable debug logging forsetting
- boolean true or false to enable or disable debugging this categorypublic static boolean isDebug()
public static boolean isDebug(java.lang.String categoryName)
categoryName
- String name of category to enable debug logging forpublic static boolean isDebugOnly(java.lang.String categoryName)
categoryName
- String name of category to enable debug logging forpublic static void addDbgListener(DebugCtl.DbgListener l, java.lang.String categoryName, java.lang.String tagsToDisplayName)
l
- DbgListener to register (or null to just register a type and description)categoryName
- String names of debug categories; null implies "all"tagsToDisplayName
- String tag name for displaying the categories for dynamic debug level switching from the UIpublic static void removeDbgListener(DebugCtl.DbgListener l, java.lang.String... categoryNames)
l
- DbgListener to unregistercategoryNames
- array of String names of debug categories; zero-length implies an array of "all"public static java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> getCategoryCodesAndTagNames()
public static java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Boolean>> getCategorySettings()
public static java.lang.String getCategoryTag(java.lang.String category)
category
- String category name