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