Provides high level functionality for logging things like Exceptions or object instances.
| Public Static Fields | |
| static String | fmtExcNull = "<No exception given>" | 
| static String | fmtExcStackTraceHeader = "Exception stack trace:" | 
| static String | fmtInstArrayPrefix = "array[" | 
| static String | fmtInstArraySuffix = "]" | 
| static String | fmtInstCycRefPrefix = "(Cyclic ref., see line <" | 
| static String | fmtInstCycRefSuffix = ">)" | 
| static String | fmtInstIndent = " " | 
| static String | fmtInstIterablePrefix = "Iterable, size= " | 
| static String | fmtInstIterableSuffix = "" | 
| static String | fmtInstLineNoPrefix = "<" | 
| static String | fmtInstLineNoSuffix = ">" | 
| static String | FmtInstNoAccessToValue = "<no access>" | 
| static String | fmtInstNull = "<null>" | 
| static String | fmtInstRecursionLimit = "(MAX REC) " | 
| static String | fmtInstTypePrefix = "{" | 
| static String | fmtInstTypeSuffix = "}" | 
| static int | instTypeTabStop = 65 | 
| static int | instValueTabStop = 35 | 
| Public Static Methods | |
| static void | exception (Exception e) | 
| static void | exception (Exception e, String headline) | 
| static void | exception (String domain, Verbosity verbosity, Exception e) | 
| static void | exception (String domain, Verbosity verbosity, Exception e, String headline) | 
| static void | exception (String domain, Verbosity verbosity, Exception e, String headline, Lox lox) | 
| static void | exception (Verbosity verbosity, Exception e) | 
| static void | exception (Verbosity verbosity, Exception e, String headline) | 
| static void | instance (String domain, Verbosity verbosity, Object o, int maxRecursion) | 
| static void | instance (String domain, Verbosity verbosity, Object o, int maxRecursion, String headline) | 
| static void | instance (String domain, Verbosity verbosity, Object o, int maxRecursion, String headline, Lox lox) | 
| static void | instance (Verbosity verbosity, Object o, int maxRecursion) | 
| static void | instance (Verbosity verbosity, Object o, int maxRecursion, String headline) | 
| static void | stackTrace (String domain, Verbosity verbosity) | 
| static void | stackTrace (String domain, Verbosity verbosity, String headline) | 
| static void | stackTrace (String domain, Verbosity verbosity, String headline, Lox lox) | 
| static void | stackTrace (Verbosity verbosity) | 
| static void | stackTrace (Verbosity verbosity, String headline) | 
| Protected Static Fields | |
| static ByteArrayOutputStream | exceptionBAOS | 
| static PrintStream | exceptionPS = new PrintStream(exceptionBAOS= new ByteArrayOutputStream(8192)) | 
| static int | instLineBeginIdx | 
| static int | instLineNumber | 
| static HashMap< Object, Integer > | instObject2LineNumber | 
| static ThreadLock | lock = new ThreadLock() | 
| static AString | tempBuf = new AString(512) | 
| static int | tempLineEndIdx | 
| static int | tempLineStartIdx | 
| static AString | toolBuf | 
| Protected Static Methods | |
| static void | exc (Throwable e, String headline, int indent) | 
| static void | instBeginLine (int indent) | 
| static void | instMain (Object o, int maxRecursion, String headLine) | 
| static void | instNewLine () | 
| static void | instRecursive (Object inst, int maxRecursion, int indent) | 
| static void | instTabStop (int tabStop) | 
| static void | instTabTypeAndNewLine ( @SuppressWarnings("rawtypes") Class type) | 
| static boolean | isWrapperType (Object o) | 
| static void | nextTempBufLine () | 
| 
 | staticprotected | 
Logs an exception.
| e | The exception to be logged. | 
| headline | A headline string to precede the exception with. | 
| indent | The indentation in the output (recursively increased). If set to -1 the 'headline' is logged. | 
| 
 | static | 
| 
 | static | 
Log an exception including inner exceptions recursively.
| e | The Exception to log. | 
| headline | (Optional) A headline string preceding the exception output. | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
Log an exception including inner exceptions recursively.
| domain | The Log Domain which is combined with Scope Domains set for the Scope of invocation. | 
| verbosity | The verbosity. | 
| e | The Exception to log. | 
| headline | (Optional) A headline string preceding the exception output. | 
| lox | (Optional) The Lox to log with. If null, the static member LOX of class Log is used. | 
| 
 | static | 
Log an exception including inner exceptions recursively.
| verbosity | The verbosity. | 
| e | The Exception to log. | 
| 
 | static | 
Log an exception including inner exceptions recursively.
| verbosity | The verbosity. | 
| e | The Exception to log. | 
| headline | (Optional) A headline string preceding the exception output. | 
| 
 | static | 
| 
 | static | 
Recursively logs objects using reflection.
| 
 | static | 
Recursively logs objects using reflection.
| domain | The Log Domain which is combined with Scope Domains set for the Scope of invocation. | 
| verbosity | The verbosity. | 
| o | The object to be logged. | 
| maxRecursion | The maximum depth of recursion for logging nested object. | 
| headline | (Optional) A headline string to precede the exception with. | 
| lox | (Optional) The lox to log with. If null, the static member LOX of the static class Log is used. | 
| 
 | static | 
Recursively logs objects using reflection.
| verbosity | The verbosity. | 
| o | The object to be logged. | 
| maxRecursion | The maximum depth of recursion for logging nested object. | 
| 
 | static | 
Recursively logs objects using reflection.
| verbosity | The verbosity. | 
| o | The object to be logged. | 
| maxRecursion | The maximum depth of recursion for logging nested object. | 
| headline | (Optional) A headline string to precede the exception with. | 
| 
 | staticprotected | 
Appends line number (format defined in fields fmtInstLineNoPrefix and fmtInstLineNoSuffix) and then adds indent characters (defined in field fmtInstIndent).
| indent | The indentation of the line. | 
| 
 | staticprotected | 
Logs the header and invokes instRecursive().
| o | The object to be logged. | 
| maxRecursion | The maximum depth of recursion for logging nested object. | 
| headLine | The headline to log. | 
| 
 | staticprotected | 
Adds a new line to the buffer and increases line number counter.
| 
 | staticprotected | 
Recursively log an instance using reflection.
| inst | The element. | 
| maxRecursion | The maximum depth of recursion for logging nested object. | 
| indent | The indentation in the output (recursively increased). | 
| 
 | staticprotected | 
Appends spaces to move to the given tabStop (but at least one).
| tabStop | The tab stop position to go to. | 
| 
 | staticprotected | 
Appends type information at the end of the line and starts a new line.
| type | The class to append in the log. | 
| 
 | staticprotected | 
Tests if an object is a primitive wrapper type.
| o | The object to check | 
| 
 | staticprotected | 
Finds the next line in tempBuf and stores start and end index in tempLineStartIdx and tempLineEndIdx.
| 
 | static | 
| 
 | static | 
Log the current stack trace.
| 
 | static | 
| 
 | static | 
Log the current stack trace.
| verbosity | The verbosity. | 
| headline | (Optional) A headline string preceding the stacktrace output. | 
| 
 | staticprotected | 
Used for logging exceptions.
| 
 | staticprotected | 
Used for logging exceptions.
| 
 | static | 
The String to log out if the exception parameter equals null
| 
 | static | 
The String to log out prior to an exception stack trace
| 
 | static | 
Prefix before logging size of an IEnumberable.
| 
 | static | 
Suffix after logging IEnumberable.
| 
 | static | 
Prefix before logging out a cyclic reference line number.
| 
 | static | 
Suffix after logging out a cyclic reference line number.
| 
 | static | 
Indent String for instance lines
| 
 | static | 
Prefix before logging size of an IEnumberable.
| 
 | static | 
Suffix after logging IEnumberable.
| 
 | static | 
Prefix for instance line numbers
| 
 | static | 
Suffix for instance line numbers
| 
 | static | 
String for non-accessible members 
 
| 
 | static | 
The String to log out if a given object instance equals null
| 
 | static | 
Prefix before logging out a string representation of a member because recursion limit was reached. 
 
| 
 | static | 
Prefix for type names
| 
 | static | 
Suffix for type names
| 
 | staticprotected | 
Instance index of beginning of line in toolBuf.
| 
 | staticprotected | 
Instance line number counter.
| 
 | staticprotected | 
Instance line number dictionary used to refer to already logged sub objects.
| 
 | static | 
Tab stop for types when logging instances.
| 
 | static | 
Tab stop for values when logging instances.
| 
 | staticprotected | 
This is the ThreadLock (mutex) which each method of this class uses to lock resources, e.g. the toolBuf
| 
 | staticprotected | 
Pointer to end of current line in tempBuf, used by nextTempBufLine
| 
 | staticprotected | 
Pointer to start of current line in tempBuf, used by nextTempBufLine
| 
 | staticprotected | 
Buffer to build log messages.
 1.8.16
 1.8.16