java.lang.Object
ch.qos.logback.classic.spi.CallerData
This class computes caller data returning the result in the form of a
StackTraceElement array.
- Author:
- Ceki Gülcü
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final StackTraceElement[]
This value is returned in case no caller data could be extracted.static final int
When caller information is not available this constant is used for the line number. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StackTraceElement[]
Extract caller data information as an array based on a Throwable passed as parameterstatic StackTraceElement
Returns a StackTraceElement where all string fields are set toCoreConstants.NA
and line number is set toLINE_NA
.
-
Field Details
-
LINE_NA
When caller information is not available this constant is used for the line number.- See Also:
-
CALLER_DATA_NA
-
EMPTY_CALLER_DATA_ARRAY
This value is returned in case no caller data could be extracted.
-
-
Constructor Details
-
CallerData
public CallerData()
-
-
Method Details
-
extract
public static StackTraceElement[] extract(Throwable t, String fqnOfInvokingClass, int maxDepth, List<String> frameworkPackageList) Extract caller data information as an array based on a Throwable passed as parameter -
naInstance
Returns a StackTraceElement where all string fields are set toCoreConstants.NA
and line number is set toLINE_NA
.- Returns:
- StackTraceElement with values set to NA constants.
- Since:
- 1.0.10
-