Package All Classes All Fields and Methods Deprecated
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 |
public static final java.lang.String copyright
public static final int RAS_TRACE_OFF
public static final int RAS_TRACE_ERROR_EXCEPTION
public static final int RAS_TRACE_ENTRY_EXIT
public static final int RAS_TRACE_INTERNAL