public class ExceptionFormatter
extends java.lang.Object
The Logentries TCP token input is delimited by a traditional newline '\n' char, so multiline events like stack traces should use the unicode line separator.
This class simplifies the coercion of logged exceptions into events that can be easily viewed and searched through Logentries.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DELIMITER
Logentries newline delimiter.
|
static java.lang.String |
TAB
Tab character used for trace indentation.
|
| Constructor and Description |
|---|
ExceptionFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
formatException(ch.qos.logback.classic.spi.IThrowableProxy error)
Returns a formatted stack trace for an exception.
|
public static final java.lang.String DELIMITER
public static final java.lang.String TAB
public static java.lang.String formatException(ch.qos.logback.classic.spi.IThrowableProxy error)
This method provides a full (non-truncated) trace delimited by
DELIMITER. Currently it doesn't make any use of Java 7's exception
suppression.
error - an IThrowableProxy objectCopyright © 2014. All Rights Reserved.