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.SerializableThe 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.StackTraceElementelementjava.lang.StringfullInfostatic java.lang.StringNAWhen location information is not available the constantNAis returned.(package private) static longserialVersionUID
-
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.StringgetClassName()Return the fully qualified class name of the caller making the logging request.java.lang.StringgetFileName()Return the file name of the caller.java.lang.StringgetLineNumber()Returns the line number of the caller.java.lang.StringgetMethodName()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 constantNAis 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.
-
-