|
Logback API Version 0.9.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.classic.spi.CallerData
public class CallerData
The internal representation of caller location information.
Field Summary | |
---|---|
static String |
CALLER_DATA_NA
|
static CallerData[] |
EMPTY_CALLER_DATA_ARRAY
This value is returned in case no caller data could be extracted. |
static int |
LINE_NA
When caller information is not available this constant is used for the line number. |
static String |
NA
When caller information is not available this constant is used for file name, method name, etc. |
Constructor Summary | |
---|---|
CallerData(StackTraceElement ste)
|
|
CallerData(String fileName,
String className,
String methodName,
int lineNumber)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
static CallerData[] |
extract(Throwable t,
String fqnOfInvokingClass)
Extract caller data information as an array based on a Throwable passed as parameter |
String |
getClassName()
Return the fully qualified class name of the caller making the logging request. |
String |
getFileName()
Return the file name of the caller. |
int |
getLineNumber()
Returns the line number of the caller. |
String |
getMethodName()
Returns the method name of the caller. |
boolean |
isNativeMethod()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String NA
public static final int LINE_NA
public static String CALLER_DATA_NA
public static CallerData[] EMPTY_CALLER_DATA_ARRAY
Constructor Detail |
---|
public CallerData(String fileName, String className, String methodName, int lineNumber)
public CallerData(StackTraceElement ste)
Method Detail |
---|
public static CallerData[] extract(Throwable t, String fqnOfInvokingClass)
public boolean equals(Object o)
equals
in class Object
public String getClassName()
public String getFileName()
This information is not always available.
public int getLineNumber()
This information is not always available.
public String getMethodName()
public String toString()
toString
in class Object
public boolean isNativeMethod()
|
Logback API Version 0.9.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |