| java.lang.Object org.apache.log.util.StackIntrospector
Method Summary | |
final public static Class | getCallerClass(Class clazz) Find the caller of the passed in Class. | final public static Class | getCallerClass(Class clazz, int stackDepthOffset) Find the caller of the passed in Class. | final public static String | getCallerMethod(Class clazz) Get the method path name for the method from which the LogEvent was
created, this includes the path name and the source filename and line
number if the source was compiled with debugging on. | final public static String | getRecentStack(Class clazz, int entries) Return the current call stack as a String, starting with the first call
in the stack after a reference to the clazz class, and then
display entries entries.
This can be useful for debugging code to determine where calls to a
method are coming from.
Parameters: clazz - the last class on the stack you are not interested in! Parameters: entries - the number of stack lines to return. |
getCallerClass | final public static Class getCallerClass(Class clazz) throws SecurityException(Code) | | Find the caller of the passed in Class.
May return null if caller not found on execution stack
Parameters: clazz - the Class to search for on stack to find caller of the Class of object that called parrameter class exception: SecurityException - if an existing SecurityManager disallows constructionof another SecurityManager and thus blocks method results |
getCallerClass | final public static Class getCallerClass(Class clazz, int stackDepthOffset)(Code) | | Find the caller of the passed in Class.
May return null if caller not found on execution stack
Parameters: clazz - the Class to search for on stack to find caller of Parameters: stackDepthOffset - Offset call-stack depth to find caller the Class of object that called parrameter class exception: SecurityException - if an existing SecurityManager disallows constructionof another SecurityManager and thus blocks method results |
getCallerMethod | final public static String getCallerMethod(Class clazz)(Code) | | Get the method path name for the method from which the LogEvent was
created, this includes the path name and the source filename and line
number if the source was compiled with debugging on.
Parameters: clazz - the Class to search for on stack to find caller of The method path name in the form "the.package.path.Method" |
getRecentStack | final public static String getRecentStack(Class clazz, int entries)(Code) | | Return the current call stack as a String, starting with the first call
in the stack after a reference to the clazz class, and then
display entries entries.
This can be useful for debugging code to determine where calls to a
method are coming from.
Parameters: clazz - the last class on the stack you are not interested in! Parameters: entries - the number of stack lines to return. The method path name in the form "the.package.path.Method" |
|
|