keycloak-federation
|
クラス | |
interface | FilterCommand |
静的公開メンバ関数 | |
static void | setProperties (Properties prop) |
static void | loadConfig (File f) throws IOException |
static boolean | debugging (Class c, int loglevel) |
static boolean | debugging (String s, int loglevel) |
static void | setOutput (PrintStream p) throws IOException |
static void | setOutput (String filename) throws IOException |
static void | setOutput () throws IOException |
static void | print (Object d) |
static void | print (Object o, Object d) |
static void | print (Object o, int loglevel, Object d) |
static void | print (Object o, int loglevel, String s) |
static void | print (Object o, int loglevel, Throwable t) |
static void | print (Class c, int loglevel, Throwable t) |
static void | print (int loglevel, Throwable t) |
static void | print (int loglevel, byte[] b) |
static void | print (int loglevel, String s) |
static void | print (Class c, int loglevel, Object d) |
static void | print (Class c, int loglevel, String s) |
static void | print (int loglevel, Object o) |
static void | printMap (Object o, int loglevel, Map m) |
static void | printMap (Class c, int loglevel, Map m) |
static void | printMap (Map m) |
static void | printMap (int loglevel, Map m) |
static void | setThrowableTraces (boolean ttrace) |
static void | setTiming (boolean timing) |
static void | setLineNos (boolean lines) |
static void | setHexDump (boolean hexdump) |
static void | setByteArrayCount (int count) |
static void | setByteArrayWidth (int width) |
static void | addFilterCommand (Class c, FilterCommand f) |
静的公開変数類 | |
static final int | CRIT = 1 |
static final int | ERR = 2 |
static final int | WARN = 3 |
static final int | INFO = 4 |
static final int | DEBUG = 5 |
static final int | VERBOSE = 6 |
static final boolean | debug = false |
static PrintStream | debugout = System.err |
静的非公開メンバ関数 | |
static String [] | getTraceElements () |
static void | _print (Class c, int level, String loc, String extra, String message, String[] lines) |
静的非公開変数類 | |
static Properties | prop = null |
static boolean | timing = false |
static boolean | ttrace = false |
static boolean | lines = false |
static boolean | hexdump = false |
static long | last = 0 |
static int | balen = 36 |
static int | bawidth = 80 |
static Class | saveclass = null |
static Map | filterMap = new HashMap() |
Add debugging to your program, has support for large projects with multiple classes and debug levels per class. Supports optional enabling of debug per-level per-class and debug targets of files, Streams or stderr. Also supports timing between debug outputs, printing of stack traces for Throwables and files/line numbers on each message.
Debug now automatically figures out which class it was called from, so all methods passing in the calling class are deprecated.
The defaults are to print all messages to stderr with class and method name.
Should be called like this:
if (Debug.debug) Debug.print(Debug.INFO, "Debug Message");
|
inlinestaticprivate |
|
inlinestatic |
Add a filter command for a specific type. This command will be called with the output stream and the text to be sent. It should perform any changes necessary to the text and then print the result to the output stream.
|
inlinestatic |
|
inlinestatic |
|
inlinestaticprivate |
|
inlinestatic |
Read which class to debug on at which level from the given File. Syntax the same as Java Properties files:
<class> = <debuglevel>
E.G.
cx.ath.matthew.io.TeeOutputStream = INFO cx.ath.matthew.io.DOMPrinter = DEBUG
The debug level can be one of CRIT, ERR, WARN, INFO, DEBUG or VERBOSE which correspond to all messages up to that level. The special words YES, ALL and TRUE cause all messages to be printed regardless of level. All other terms disable messages for that class. CRIT and ERR messages are always printed if debugging is enabled unless explicitly disabled. The special class name ALL can be used to set the default level for all classes.
f | File to read from. |
|
inlinestatic |
Log at DEBUG
d | The object to log |
|
inlinestatic |
Log at DEBUG
o | The object doing the logging |
d | The object to log |
|
inlinestatic |
Log an Object
o | The object doing the logging |
loglevel | The level to log at (DEBUG, WARN, etc) |
d | The object to log with d.toString() |
|
inlinestatic |
Log a String
o | The object doing the logging |
loglevel | The level to log at (DEBUG, WARN, etc) |
s | The log message |
|
inlinestatic |
Log a Throwable
o | The object doing the logging |
loglevel | The level to log at (DEBUG, WARN, etc) |
t | The throwable to log with .toString and .printStackTrace |
|
inlinestatic |
Log a Throwable
c | The class doing the logging |
loglevel | The level to log at (DEBUG, WARN, etc) |
t | The throwable to log with .toString and .printStackTrace |
|
inlinestatic |
Log a Throwable
loglevel | The level to log at (DEBUG, WARN, etc) |
t | The throwable to log with .toString and .printStackTrace |
|
inlinestatic |
Log a byte array
loglevel | The level to log at (DEBUG, WARN, etc) |
b | The byte array to print. |
|
inlinestatic |
Log a String
loglevel | The level to log at (DEBUG, WARN, etc) |
s | The string to log with d.toString() |
|
inlinestatic |
Log an Object
c | The class doing the logging |
loglevel | The level to log at (DEBUG, WARN, etc) |
d | The object to log with d.toString() |
|
inlinestatic |
Log a String
c | The class doing the logging |
loglevel | The level to log at (DEBUG, WARN, etc) |
s | The log message |
|
inlinestatic |
Log an Object
loglevel | The level to log at (DEBUG, WARN, etc) |
o | The object to log |
|
inlinestatic |
Log a Map
o | The object doing the logging |
loglevel | The level to log at (DEBUG, WARN, etc) |
m | The Map to print out |
|
inlinestatic |
Log a Map
c | The class doing the logging |
loglevel | The level to log at (DEBUG, WARN, etc) |
m | The Map to print out |
|
inlinestatic |
Log a Map at DEBUG log level
m | The Map to print out |
|
inlinestatic |
Log a Map
loglevel | The level to log at (DEBUG, WARN, etc) |
m | The Map to print out |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Enable or disable hexdumps.
|
inlinestatic |
Enable or disable line numbers.
|
inlinestatic |
Output to the given Stream
|
inlinestatic |
Output to the given file
|
inlinestatic |
Output to the default debug.log
|
inlinestatic |
Set properties to configure debugging. Format of properties is class => level, e.g.
cx.ath.matthew.io.TeeOutputStream = INFO cx.ath.matthew.io.DOMPrinter = DEBUG
The debug level can be one of CRIT, ERR, WARN, INFO, DEBUG or VERBOSE which correspond to all messages up to that level. The special words YES, ALL and TRUE cause all messages to be printed regardless of level. All other terms disable messages for that class. CRIT and ERR messages are always printed if debugging is enabled unless explicitly disabled. The special class name ALL can be used to set the default level for all classes.
prop | Properties object to use. |
|
inlinestatic |
Enable or disable stack traces in Debuging throwables.
|
inlinestatic |
Enable or disable timing in Debug messages.
|
staticprivate |
|
staticprivate |
|
static |
Highest priority messages
|
static |
Debug messages
|
static |
Set this to false to disable compilation of Debug statements
|
static |
The current output stream (defaults to System.err)
|
static |
Error messages
|
staticprivate |
|
staticprivate |
|
static |
Information
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
Verbose debug messages
|
static |
Warnings