Class CallerData

java.lang.Object
ch.qos.logback.classic.spi.CallerData

public class CallerData extends Object
This class computes caller data returning the result in the form of a StackTraceElement array.
Author:
Ceki Gülcü
  • Field Details

  • Constructor Details

  • 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

      public static StackTraceElement naInstance()
      Returns a StackTraceElement where all string fields are set to NA and line number is set to LINE_NA.
      Returns:
      StackTraceElement with values set to NA constants.
      Since:
      1.0.10