class : outputs the name of the class that has logged the
message. The optional short subformat removes the
package name. Warning : this pattern works only if formatting occurs in
the same thread as the call to Logger, i.e. it won't work with
AsyncLogTarget.| Modifier and Type | Field and Description |
|---|---|
| public static final boolean | DEFAULT_PRINT_CASCADING
The constant defining the default behaviour for printing nested exceptions. |
| public static final int | DEFAULT_STACK_DEPTH
The constant defining the default stack depth when none other is specified. |
| private final boolean | |
| private final int | |
| private static final int | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | AvalonFormatter(final String
The pattern to use to format the log entries pattern)Construct the formatter with the specified pattern and which which prints out exceptions to stackDepth of 8. |
| public | AvalonFormatter(final String
The pattern to use to format the log entries pattern, final int The depth to which stacktraces are printed out stackDepth, final boolean true enables printing of nested exceptions,
false only prints out the outermost exception printCascading)Construct the formatter with the specified pattern and which which prints out exceptions to stackDepth specified. |
| Modifier and Type | Method and Description |
|---|---|
| protected String | Returns: the formatted stringthe log event event, PatternFormatter.the patter formatter pattern run runOverrides org. |
| private String | |
| protected String | Returns: the formatted stringthe throwable instance throwable, final String ancilliary format parameter - allowed to be null format)Overrides org. |
| protected int | Returns: the type-idthe string type)Overrides org. |
| DEFAULT_PRINT_CASCADING | back to summary |
|---|---|
| public static final boolean DEFAULT_PRINT_CASCADING The constant defining the default behaviour for printing nested exceptions.
| |
| DEFAULT_STACK_DEPTH | back to summary |
|---|---|
| public static final int DEFAULT_STACK_DEPTH The constant defining the default stack depth when none other is specified.
| |
| m_printCascading | back to summary |
|---|---|
| private final boolean m_printCascading | |
| m_stackDepth | back to summary |
|---|---|
| private final int m_stackDepth | |
| TYPE_CLASS | back to summary |
|---|---|
| private static final int TYPE_CLASS | |
| TYPE_CLASS_SHORT_STR | back to summary |
|---|---|
| private static final String TYPE_CLASS_SHORT_STR | |
| TYPE_CLASS_STR | back to summary |
|---|---|
| private static final String TYPE_CLASS_STR | |
| AvalonFormatter | back to summary |
|---|---|
| public AvalonFormatter(final String pattern) Construct the formatter with the specified pattern and which which prints out exceptions to stackDepth of 8.
| |
| AvalonFormatter | back to summary |
|---|---|
| public AvalonFormatter(final String pattern, final int stackDepth, final boolean printCascading) Construct the formatter with the specified pattern and which which prints out exceptions to stackDepth specified.
| |
| formatPatternRun | back to summary |
|---|---|
| protected String formatPatternRun(LogEvent event, PatternFormatter. Overrides org. Return the result of formaltting a pattern run.
| |
| getClass | back to summary |
|---|---|
| private String getClass(String format) Finds the class that has called Logger. | |
| getStackTrace | back to summary |
|---|---|
| protected String getStackTrace(final Throwable throwable, final String format) Overrides org. Utility method to format stack trace. | |
| getTypeIdFor | back to summary |
|---|---|
| protected int getTypeIdFor(final String type) Overrides org. Retrieve the type-id for a particular string.
| |