public class GiftRegistryTraceLogger
extends java.lang.Object
com.ibm.websphere.commerce.WC_GIFTREGISTRY
.
A method that is being traced should make a call to entry()
at the top of
the method and exit()
at the bottom. To create additional tracing the
trace()
method can be called.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPONENT_NAME
The component name of the logging component.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
LOGGER_NAME
The logger name of the logging component.
|
static java.lang.String |
ORGANIZATION_NAME
The organization name for the logging component.
|
static java.lang.String |
PRODUCT_NAME
The product name of the logging component.
|
static java.lang.String |
RESOURCE_BUNDLE
The resource bundle used by the logging component.
|
Constructor and Description |
---|
GiftRegistryTraceLogger() |
Modifier and Type | Method and Description |
---|---|
static void |
entry(java.lang.Object tracedObject,
java.lang.String methodName)
Entry trace statement for the logging component.
|
static void |
entry(java.lang.Object tracedObject,
java.lang.String methodName,
java.lang.Object[] params)
Entry trace statement for the logging component.
|
static void |
entry(java.lang.String classname,
java.lang.String methodName)
Entry trace statement for the logging component.
|
static void |
entry(java.lang.String classname,
java.lang.String methodName,
java.lang.Object[] params)
Entry trace statement for the logging component.
|
static void |
exit(java.lang.Object tracedObject,
java.lang.String methodName)
The exit trace statement for the logging component.
|
static void |
exit(java.lang.Object tracedObject,
java.lang.String methodName,
java.lang.Object returned)
The exit trace statement for the logging component.
|
static void |
exit(java.lang.String classname,
java.lang.String methodName)
The exit trace statement for the logging component.
|
static void |
exit(java.lang.String classname,
java.lang.String methodName,
java.lang.Object returned)
The exit trace statement for the logging component.
|
static com.ibm.ras.RASTraceLogger |
getLogger()
Returns the logger.
|
static boolean |
isLoggable(long event)
Indicates whether the specified logging event is traceable.
|
static boolean |
isLoggableEntryExit()
Indicates whether the entry/exit trace is traceable.
|
static boolean |
isLoggableTrace()
Indicates whether the API trace is traceable.
|
static void |
trace(java.lang.Object tracedObject,
java.lang.String methodName,
java.lang.String text)
An API trace statement for the logging component.
|
static void |
trace(java.lang.String classname,
java.lang.String methodName,
java.lang.String text)
An API trace statement for the logging component.
|
public static final java.lang.String COPYRIGHT
public static java.lang.String ORGANIZATION_NAME
public static java.lang.String PRODUCT_NAME
public static java.lang.String COMPONENT_NAME
public static java.lang.String LOGGER_NAME
public static java.lang.String RESOURCE_BUNDLE
public static com.ibm.ras.RASTraceLogger getLogger()
public static final boolean isLoggable(long event)
event
- the event to test.public static final boolean isLoggableEntryExit()
public static final boolean isLoggableTrace()
public static final void entry(java.lang.Object tracedObject, java.lang.String methodName)
tracedObject
- the object being traced.methodName
- the method name being traced.public static final void entry(java.lang.Object tracedObject, java.lang.String methodName, java.lang.Object[] params)
tracedObject
- the object being traced.methodName
- the method name being traced.params
- the input parameters of the method.public static final void entry(java.lang.String classname, java.lang.String methodName)
classname
- the object being traced.methodName
- the method name being traced.public static final void entry(java.lang.String classname, java.lang.String methodName, java.lang.Object[] params)
classname
- the object being traced.methodName
- the method name being traced.params
- the input parameters of the method.public static final void exit(java.lang.Object tracedObject, java.lang.String methodName)
tracedObject
- the object being traced.methodName
- the method name being traced.public static final void exit(java.lang.Object tracedObject, java.lang.String methodName, java.lang.Object returned)
tracedObject
- the object being traced.methodName
- the method name being traced.returned
- the object being returned by the method.public static final void exit(java.lang.String classname, java.lang.String methodName)
classname
- the object being traced.methodName
- the method name being traced.public static final void exit(java.lang.String classname, java.lang.String methodName, java.lang.Object returned)
classname
- the object being traced.methodName
- the method name being traced.returned
- the object being returned by the method.public static final void trace(java.lang.Object tracedObject, java.lang.String methodName, java.lang.String text)
tracedObject
- the object being traced.methodName
- the name of the method being traced.text
- the text message of the trace statement.public static final void trace(java.lang.String classname, java.lang.String methodName, java.lang.String text)
classname
- the object being traced.methodName
- the name of the method being traced.text
- the text message of the trace statement.