Package org.apache.log4j.spi
Class LocationInfo
- java.lang.Object
-
- org.apache.log4j.spi.LocationInfo
-
- All Implemented Interfaces:
java.io.Serializable
public class LocationInfo extends java.lang.Object implements java.io.Serializable
The internal representation of caller location information.- Since:
- 0.8.3
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StackTraceElement
element
java.lang.String
fullInfo
static java.lang.String
NA
When location information is not available the constantNA
is returned.(package private) static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description LocationInfo(java.lang.StackTraceElement element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClassName()
Return the fully qualified class name of the caller making the logging request.java.lang.String
getFileName()
Return the file name of the caller.java.lang.String
getLineNumber()
Returns the line number of the caller.java.lang.String
getMethodName()
Returns the method name of the caller.
-
-
-
Field Detail
-
element
private final java.lang.StackTraceElement element
-
fullInfo
public java.lang.String fullInfo
-
NA
public static final java.lang.String NA
When location information is not available the constantNA
is returned. Current value of this string constant is ?.- See Also:
- Constant Field Values
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getClassName
public java.lang.String getClassName()
Return the fully qualified class name of the caller making the logging request.
-
getFileName
public java.lang.String getFileName()
Return the file name of the caller.
-
getLineNumber
public java.lang.String getLineNumber()
Returns the line number of the caller.
-
getMethodName
public java.lang.String getMethodName()
Returns the method name of the caller.
-
-