| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | Returns: String with above metadataInclude information containing: - hex value of threadId - the current thread name - timestamp string |
| private static String | |
| public static Debug | getInstance(String option)
Get a Debug object corresponding to whether or not the given option is set. |
| public static Debug | getInstance(String option, String prefix)
Get a Debug object corresponding to whether or not the given option is set. |
| public PrintStream | |
| public static void | |
| public static boolean | |
| public static boolean | |
| public static Debug | |
| public void | |
| public void | |
| public void | |
| public void | |
| public static String | toHexString(BigInteger b)
return a hexadecimal printed representation of the specified BigInteger object. |
| public static String | |
| public static String |
| args | back to summary |
|---|---|
| private static String args | |
| prefix | back to summary |
|---|---|
| private String prefix | |
| Debug | back to summary |
|---|---|
| public Debug() | |
| extraInfo | back to summary |
|---|---|
| private String extraInfo() Include information containing: - hex value of threadId - the current thread name - timestamp string
| |
| formatCaller | back to summary |
|---|---|
| private static String formatCaller() | |
| getInstance | back to summary |
|---|---|
| public static Debug getInstance(String option) Get a Debug object corresponding to whether or not the given option is set. Set the prefix to be the same as option. | |
| getInstance | back to summary |
|---|---|
| public static Debug getInstance(String option, String prefix) Get a Debug object corresponding to whether or not the given option is set. Set the prefix to prefix. | |
| getPrintStream | back to summary |
|---|---|
| public PrintStream getPrintStream() PrintStream for debug methods. Currently, only System.err is supported. | |
| Help | back to summary |
|---|---|
| public static void Help() | |
| isOn | back to summary |
|---|---|
| public static boolean isOn(String option) True if the system property "security.debug" contains the string "option". | |
| isVerbose | back to summary |
|---|---|
| public static boolean isVerbose() Check if verbose messages is enabled for extra debugging. | |
| of | back to summary |
|---|---|
| public static Debug of(String prefix, String property) Get a Debug object corresponding to the given option on the given property value. Note unlike other Usually, this method is used by other individual area-specific debug settings. For example, Map<String, String> settings = loadLoginSettings(); String property = settings.get("login"); Debug debug = Debug.of("login", property); | |
| println | back to summary |
|---|---|
| public void println(String message) print a message to stderr that is prefixed with the prefix created from the call to getInstance. | |
| println | back to summary |
|---|---|
| public void println(Object obj, String message) print a message to stderr that is prefixed with the prefix created from the call to getInstance and obj. | |
| println | back to summary |
|---|---|
| public void println() print a blank line to stderr that is prefixed with the prefix. | |
| println | back to summary |
|---|---|
| public void println(String prefix, String message) print a message to stderr that is prefixed with the prefix. | |
| toHexString | back to summary |
|---|---|
| public static String toHexString(BigInteger b) return a hexadecimal printed representation of the specified BigInteger object. the value is formatted to fit on lines of at least 75 characters, with embedded newlines. Words are separated for readability, with eight words (32 bytes) per line. | |
| toString | back to summary |
|---|---|
| public static String toString(byte[] b) | |
| toString | back to summary |
|---|---|
| public static String toString(BigInteger b) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final DateTimeFormatter | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| DATE_TIME_FORMATTER | back to summary |
|---|---|
| private static final DateTimeFormatter DATE_TIME_FORMATTER | |
| PATTERN | back to summary |
|---|---|
| private static final String PATTERN | |
| FormatHolder | back to summary |
|---|---|
| private FormatHolder() | |