Package All Classes All Fields and Methods Deprecated


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 Connector for Java using these properties.

For example, in a non-managed environment the application turns on full IMS Connector for Java 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
static java.lang.String copyright
           
static 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.
static int RAS_TRACE_ERROR_EXCEPTION
          RAS_TRACE_ERROR_EXCEPTION (value 1) logs errors and exceptions only.
static int RAS_TRACE_INTERNAL
          RAS_TRACE_INTERNAL (value 3) displays the most information.
static int RAS_TRACE_OFF
          RAS_TRACE_OFF (value 0) specifies that no tracing or logging is to occur.
 

Field Detail

copyright

public static final java.lang.String copyright
See Also:
Constant Field Values

RAS_TRACE_OFF

public static final int RAS_TRACE_OFF
RAS_TRACE_OFF (value 0) specifies that no tracing or logging is to occur.

See Also:
Constant Field Values

RAS_TRACE_ERROR_EXCEPTION

public static final int RAS_TRACE_ERROR_EXCEPTION
RAS_TRACE_ERROR_EXCEPTION (value 1) logs errors and exceptions only.

See Also:
Constant Field Values

RAS_TRACE_ENTRY_EXIT

public 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:
Constant Field Values

RAS_TRACE_INTERNAL

public 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:
Constant Field Values

Package All Classes All Fields and Methods Deprecated