Top Description Fields Constructors Methods
ch.qos.logback.classic.spi

public Class CallerData

extends Object
Class Inheritance
Imports
ch.qos.logback.core.CoreConstants, java.util.List

This class computes caller data returning the result in the form of a StackTraceElement array.
Author
Ceki Gülcü

Field Summary

Modifier and TypeField and Description
public static final String
public static final StackTraceElement[]
EMPTY_CALLER_DATA_ARRAY

This value is returned in case no caller data could be extracted.

public static final int
LINE_NA

When caller information is not available this constant is used for the line number.

private static final String
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static StackTraceElement[]
extract(Throwable t, String fqnOfInvokingClass, final int maxDepth, List<String> frameworkPackageList)

Extract caller data information as an array based on a Throwable passed as parameter

pack-priv static boolean
isInFrameworkSpace(String currentClass, String fqnOfInvokingClass, List<String> frameworkPackageList)

private static boolean
isInFrameworkSpaceList(String currentClass, List<String> frameworkPackageList)

Is currentClass present in the list of packages considered part of the logging framework?

public static StackTraceElement

Returns:

StackTraceElement with values set to NA constants.
naInstance
()

Returns a StackTraceElement where all string fields are set to CoreConstants#NA and line number is set to LINE_NA.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CALLER_DATA_NAback to summary
public static final String CALLER_DATA_NA
EMPTY_CALLER_DATA_ARRAYback to summary
public static final StackTraceElement[] EMPTY_CALLER_DATA_ARRAY

This value is returned in case no caller data could be extracted.

LINE_NAback to summary
public static final int LINE_NA

When caller information is not available this constant is used for the line number.

LOG4J_CATEGORYback to summary
private static final String LOG4J_CATEGORY
SLF4J_BOUNDARYback to summary
private static final String SLF4J_BOUNDARY

Constructor Detail

CallerDataback to summary
public CallerData()

Method Detail

extractback to summary
public static StackTraceElement[] extract(Throwable t, String fqnOfInvokingClass, final int maxDepth, List<String> frameworkPackageList)

Extract caller data information as an array based on a Throwable passed as parameter

isInFrameworkSpaceback to summary
pack-priv static boolean isInFrameworkSpace(String currentClass, String fqnOfInvokingClass, List<String> frameworkPackageList)
isInFrameworkSpaceListback to summary
private static boolean isInFrameworkSpaceList(String currentClass, List<String> frameworkPackageList)

Is currentClass present in the list of packages considered part of the logging framework?

naInstanceback to summary
public static StackTraceElement naInstance()

Returns a StackTraceElement where all string fields are set to CoreConstants#NA and line number is set to LINE_NA.

Returns:StackTraceElement

StackTraceElement with values set to NA constants.

Since
1.0.10