com.ibm.connector2.ims.ico
Interface IMSTraceLevelProperties
- public interface IMSTraceLevelProperties
The IMSTraceLevelProperties interface defines properties for levels of tracing. An application that uses the Common Client Interface (CCI) can control what is logged and traced by IMS TM Resource Adapter using these properties.
For example, in a non-managed environment the application turns on full IMS TM Resource Adapter tracing as follows:
// Create and configure a managed connection factory. IMSManagedConnectionFactory mcf = new IMSManagedConnectionFactory(); ... // Set the trace level. mcf.setTraceLevel(new Integer(IMSTraceLevelProperties.RAS_TRACE_INTERNAL)); ... // Provide a value for the file to be used for the trace. PrintWriter pr = new PrintWriter(new java.io.BufferedWriter( new java.io.FileWriter("c:/temp/CCISampleLog.log", false))); mcf.setLogWriter(pr); ...
Field Summary
Modifier and Type | Field and Description |
---|---|
|
copyright
|
|
RAS_TRACE_ENTRY_EXIT
RAS_TRACE_ENTRY_EXIT (value 2) traces the entry
and exit of important methods in addition to
logging errors and exceptions.
|
|
RAS_TRACE_ERROR_EXCEPTION
RAS_TRACE_ERROR_EXCEPTION (value 1)
logs errors and exceptions only.
|
|
RAS_TRACE_INTERNAL
RAS_TRACE_INTERNAL (value 3) displays the most
information.
|
|
RAS_TRACE_OFF
RAS_TRACE_OFF (value 0) specifies that
no tracing or logging is to occur.
|
Field Detail
copyright
- static final java.lang.String copyright
See Also:
RAS_TRACE_OFF
- static final int RAS_TRACE_OFF
RAS_TRACE_OFF (value 0) specifies that
no tracing or logging is to occur.
See Also:
RAS_TRACE_ERROR_EXCEPTION
- static final int RAS_TRACE_ERROR_EXCEPTION
RAS_TRACE_ERROR_EXCEPTION (value 1)
logs errors and exceptions only.
See Also:
RAS_TRACE_ENTRY_EXIT
- static final int RAS_TRACE_ENTRY_EXIT
RAS_TRACE_ENTRY_EXIT (value 2) traces the entry
and exit of important methods in addition to
logging errors and exceptions.
See Also:
RAS_TRACE_INTERNAL
- static final int RAS_TRACE_INTERNAL
RAS_TRACE_INTERNAL (value 3) displays the most
information. This trace level includes
logging of errors and exceptions, a trace
of the entry and exit of most methods, and
a trace of the contents of the buffers sent
to and received from IMS Connect.
In most cases, this trace level is used for
problem determination.
See Also: