public class FrameworkDebugTraceEntry extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_OPTION_PATH
If a bundles symbolic name is not specified then the default value of /debug can be used
|
Constructor and Description |
---|
FrameworkDebugTraceEntry(String bundleSymbolicName,
String optionPath,
String message,
String traceClass)
Construct a new FrameworkTraceRecord object
|
FrameworkDebugTraceEntry(String bundleSymbolicName,
String optionPath,
String message,
Throwable error,
String traceClass)
Construct a new FrameworkTraceRecord object
|
Modifier and Type | Method and Description |
---|---|
String |
getBundleSymbolicName()
Accessor for the symbolic name of the bundle being traced
|
String |
getClassName()
Accessor for the name of the class being traced.
|
int |
getLineNumber()
Return the line number in the class/method where the trace originator
|
String |
getMessage()
Accessor for the trace message
|
String |
getMethodName()
Accessor for the method being traced.
|
String |
getOptionPath()
Accessor for the option-path being traced.
|
String |
getThreadName()
Accessor to the threads name
|
Throwable |
getThrowable()
Accessor for the trace exception.
|
long |
getTimestamp()
Accessor to the timestamp for this trace record
|
String |
toString() |
public static final String DEFAULT_OPTION_PATH
public FrameworkDebugTraceEntry(String bundleSymbolicName, String optionPath, String message, String traceClass)
bundleSymbolicName
- The symbolic name of the bundle being tracedoptionPath
- The trace optionPathmessage
- The trace messagetraceClass
- The class that calls the trace APIpublic FrameworkDebugTraceEntry(String bundleSymbolicName, String optionPath, String message, Throwable error, String traceClass)
bundleSymbolicName
- The symbolic name of the bundle being tracedoptionPath
- The trace optionPathmessage
- The trace messageerror
- An exception to be tracedtraceClass
- The class that calls the trace APIpublic final String getThreadName()
public final long getTimestamp()
public final String getBundleSymbolicName()
public final String getMessage()
public final Throwable getThrowable()
public final String getClassName()
public final String getMethodName()
public final String getOptionPath()
Examples: 1) If a trace string com.ibm.myplugin.core/debug=true is specified then 'debug' is the option-path value. 2) If a trace string com.ibm.myplugin.core/debug/perf=true is specified then 'debug/perf' is the option-path value.
public final int getLineNumber()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.