public class NewLineIndentingFilteringPatternLayout extends FilteredPatternLayout
FilteredPatternLayout filtering for stack traces is disabled by defaultcollapsingParser| Constructor and Description |
|---|
NewLineIndentingFilteringPatternLayout() |
NewLineIndentingFilteringPatternLayout(String lineIndent) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.log4j.helpers.PatternParser |
createPatternParser(String pattern) |
String |
getLineIndent() |
protected String[] |
getThrowableStrRep(org.apache.log4j.spi.ThrowableInformation throwableInformation)
A replacement for
ThrowableInformation.getThrowableStrRep() which will split on any
newline characters that may have been injected into the exception message. |
void |
setLineIndent(String lineIndent) |
activateOptions, format, getCategoryNameCollapsePrecision, getFilterEveryThingAfterMessage, getFilterReplacementToken, getMarkerAtMessage, getMinimumLines, ignoresThrowable, isFilteringApplied, isFilteringAppliedToDebugLevel, isShowEludedSummary, isStackTracePackagingExamined, setFilteredFrames, setFilterEveryThingAfterFrames, setFilterEveryThingAfterMessage, setFilteringApplied, setFilteringAppliedToDebugLevel, setFilterReplacementToken, setMarkerAtFrames, setMarkerAtMessage, setMinimumLines, setShowEludedSummary, setStackTracePackagingExaminedpublic NewLineIndentingFilteringPatternLayout()
public NewLineIndentingFilteringPatternLayout(String lineIndent)
protected org.apache.log4j.helpers.PatternParser createPatternParser(String pattern)
createPatternParser in class FilteredPatternLayoutprotected String[] getThrowableStrRep(org.apache.log4j.spi.ThrowableInformation throwableInformation)
ThrowableInformation.getThrowableStrRep() which will split on any
newline characters that may have been injected into the exception message. This also replaces the call to
Throwable.printStackTrace(java.io.PrintStream) which has hard coded Strings
("\tat", "Caused By:", "\t... ") that are printed along with the exception message. If text is injected into the
exception message then these can be easily faked.getThrowableStrRep in class FilteredPatternLayoutthrowableInformation - the throwable that is attached to the logging eventpublic String getLineIndent()
public void setLineIndent(String lineIndent)
Copyright © 2018 Atlassian. All rights reserved.