public class DefaultStackTraceFilterer extends java.lang.Object implements StackTraceFilterer
Default implementation of StackTraceFilterer.
| Modifiers | Name | Description |
|---|---|---|
static Log |
STACK_LOG |
Dedicated logger for exception stack traces. |
static java.lang.String |
STACK_LOG_NAME |
| Constructor and description |
|---|
DefaultStackTraceFilterer() |
DefaultStackTraceFilterer(boolean shouldFilter) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addInternalPackage(java.lang.String name) |
|
public java.lang.Throwable |
filter(java.lang.Throwable source, boolean recursive) |
|
public java.lang.Throwable |
filter(java.lang.Throwable source) |
|
protected boolean |
isApplicationClass(java.lang.String className)Whether the given class name is an internal class and should be filtered |
|
public void |
setCutOffPackage(java.lang.String cutOffPackage) |
|
public void |
setLogFullStackTraceOnFilter(boolean logFullStackTraceOnFilter)Controls whether filter(Throwable) emits the unfiltered stack trace to STACK_LOG as a side effect before trimming the trace in place. |
|
public void |
setShouldFilter(boolean shouldFilter) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Dedicated logger for exception stack traces. The filterer emits the unfiltered
trace to this logger as a side effect of filter(Throwable) — before the
trace is trimmed in place — when logFullStackTraceOnFilter is true
(the default). GrailsExceptionResolver also emits to this logger when
grails.exceptionresolver.logFullStackTrace is enabled. Exposed as a public
constant so that subclasses and logback configurations can reference the logger
name symbolically.
Whether the given class name is an internal class and should be filtered
className - The class name Controls whether filter(Throwable) emits the unfiltered stack trace
to STACK_LOG as a side effect before trimming the trace in place.
Defaults to true for backwards compatibility with pre-7.1 behaviour;
set to false to disable the side-effect emission. The exception
resolver wires this from grails.exceptionresolver.logFullStackTraceOnFilter.