|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.acelogger.location.LogEventLocation
public class LogEventLocation
Stores location information for a log event.
Constructor Summary | |
---|---|
LogEventLocation()
Constructs a new LogEventLocation without any information. |
|
LogEventLocation(Class<?> source)
Constructs a new LogEventLocation for a given class. |
|
LogEventLocation(Class<?> source,
String methodName)
Constructs a new LogEventLocation for a given method and class. |
|
LogEventLocation(String packageName,
String className)
Constructs a new LogEventLocation for a given package and class. |
|
LogEventLocation(String packageName,
String className,
String methodName)
Constructs a new LogEventLocation for a given package, class and method. |
|
LogEventLocation(String packageName,
String className,
String methodName,
String fileName)
Constructs a new LogEventLocation for a given package, class, method and file. |
|
LogEventLocation(String packageName,
String className,
String methodName,
String fileName,
int lineNumber)
Constructs a new LogEventLocation for a given package, class, method, file and line. |
|
LogEventLocation(String packageName,
String className,
String methodName,
String fileName,
int lineNumber,
String threadName)
Constructs a new LogEventLocation for a given package, class, method, file, line and thread. |
Method Summary | |
---|---|
String |
getClassName()
Gets the caller class name. |
String |
getFileName()
Gets the caller file name. |
String |
getFullQualifiedName()
Gets the full qualified name of the callers class. |
String |
getJavadocLikeName()
Gets a javadoc like name for the caller, this name resembles something like caller.package.SomeClass#aMethod. |
String |
getLineNumber()
Gets the caller line number. |
String |
getMethodName()
Gets the caller method name. |
String |
getPackageName()
Gets the caller package name. |
String |
getStackTraceLikeName()
Gets a string representing the file name and line number of the caller. |
String |
getThreadName()
Gets the caller thread name. |
void |
setClassName(String className)
Sets the caller class name. |
void |
setFileName(String fileName)
Sets the caller file name. |
void |
setLineNumber(int lineNumber)
Sets the caller line number. |
void |
setMethodName(String methodName)
Sets the caller method name. |
void |
setPackageName(String packageName)
Sets the caller package name. |
void |
setThreadName(String threadName)
Sets the caller thread name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogEventLocation()
public LogEventLocation(Class<?> source)
source
- The callers class.public LogEventLocation(Class<?> source, String methodName)
source
- The caller class.methodName
- The caller method.public LogEventLocation(String packageName, String className)
packageName
- The caller package name.className
- The caller class name.public LogEventLocation(String packageName, String className, String methodName)
packageName
- The caller package name.className
- The caller class name.methodName
- The caller method name.public LogEventLocation(String packageName, String className, String methodName, String fileName)
packageName
- The caller package name.className
- The caller class name.methodName
- The caller method name.fileName
- The caller file name.public LogEventLocation(String packageName, String className, String methodName, String fileName, int lineNumber)
packageName
- The caller package name.className
- The caller class name.methodName
- The caller method name.fileName
- The caller file name.lineNumber
- The caller line number.public LogEventLocation(String packageName, String className, String methodName, String fileName, int lineNumber, String threadName)
packageName
- The caller package name.className
- The caller class name.methodName
- The caller method name.fileName
- The caller file name.lineNumber
- The caller line number.threadName
- The caller thread name.Method Detail |
---|
public final String getPackageName()
public final void setPackageName(String packageName)
null
, the package will be
identified by a empty string.
packageName
- The caller package name.public final String getClassName()
public final void setClassName(String className)
null
, the class will be identified by
a empty string.
className
- The caller class name.public final String getMethodName()
public final void setMethodName(String methodName)
null
, the method will be identified
by a empty string.
methodName
- The caller method name.public final String getLineNumber()
public final void setLineNumber(int lineNumber)
lineNumber
- The caller line number.public final String getFileName()
public final void setFileName(String fileName)
null
, the file will be identified by a
empty string.
fileName
- The caller file name.public final String getThreadName()
public final void setThreadName(String threadName)
null
, the thread will be identified
by a empty string.
threadName
- The caller thread name.public String getFullQualifiedName()
public String getJavadocLikeName()
public String getStackTraceLikeName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |