com.ibm.connector2.ims.ico

Interface IMSTraceLevelProperties


  1. 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
  1. static
  2. java.lang.String
copyright
  1. static
  2. 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.
  1. static
  2. int
RAS_TRACE_ERROR_EXCEPTION
RAS_TRACE_ERROR_EXCEPTION (value 1) logs errors and exceptions only.
  1. static
  2. int
RAS_TRACE_INTERNAL
RAS_TRACE_INTERNAL (value 3) displays the most information.
  1. static
  2. int
RAS_TRACE_OFF
RAS_TRACE_OFF (value 0) specifies that no tracing or logging is to occur.

Field Detail

  1. static final java.lang.String copyright
See Also:

RAS_TRACE_OFF

  1. 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

  1. static final int RAS_TRACE_ERROR_EXCEPTION
RAS_TRACE_ERROR_EXCEPTION (value 1) logs errors and exceptions only.
See Also:

RAS_TRACE_ENTRY_EXIT

  1. 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

  1. 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: