Class LocationInfo

    • Field Detail

      • NA

        public static final String NA
        When location information is not available the constant NA is returned. Current value of this string constant is ?.
        See Also:
        Constant Field Values
      • fullInfo

        public String fullInfo
    • Constructor Detail

      • LocationInfo

        public LocationInfo​(StackTraceElement stackTraceElement)
        Constructs a new instance.
      • LocationInfo

        public LocationInfo​(String file,
                            String declaringClass,
                            String methodName,
                            String line)
        Constructs a new instance.
        Parameters:
        file - source file name
        declaringClass - class name
        methodName - method
        line - source line number
        Since:
        1.2.15
      • LocationInfo

        public LocationInfo​(Throwable throwable,
                            String fqnOfCallingClass)
        Constructs a new instance.
    • Method Detail

      • getClassName

        public String getClassName()
        Gets the fully qualified class name of the caller making the logging request.
      • getFileName

        public String getFileName()
        Gets the file name of the caller.
      • getLineNumber

        public String getLineNumber()
        Gets the line number of the caller.
      • getMethodName

        public String getMethodName()
        Gets the method name of the caller.