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 | 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. |
public static final java.lang.String copyright
public static final int RAS_TRACE_ENTRY_EXITRAS_TRACE_ENTRY_EXIT (value 2) traces the entry and exit of important methods in addition to logging errors and exceptions.
public static final int RAS_TRACE_ERROR_EXCEPTIONRAS_TRACE_ERROR_EXCEPTION (value 1) logs errors and exceptions only.
public static final int RAS_TRACE_INTERNALRAS_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.
public static final int RAS_TRACE_OFFRAS_TRACE_OFF (value 0) specifies that no tracing or logging is to occur.