Testing Applications Oracle Fusion Middleware Online Documentation Library

2-42 Oracle Fusion Middleware Users Guide for Technology Adapters

2.24 Setting the Trace Level of Oracle JCA Adapters

Set the trace level for the following types of adapters as follows: ■ Oracle JCA Adapters and Oracle Adapter for Oracle Applications: set the log level to, for example, TRACE:32 in the logger oracle.soa.adapter. For more information about setting trace levels for adapters, see Oracle Fusion Middleware Administrators Guide. ■ Packaged-application adapters: For outbound interactions, set the Loglevel property for packaged-application adapters in the weblogic-ra.xml file. ■ Legacy adapters: you can use Oracle Studio to set the trace level for Oracle Connect, and the mainframe server.

2.24.1 How to Set the Trace Level of Oracle JCA Adapters

To set the trace level by using the Fusion Middleware Control Console: 1. Navigate to http:servername:portnumberem. The Fusion Middleware Control Console home page is displayed. 2. Right-click soa-infra from the SOA Folder in the Navigator in the left pane. The console displays a menu. 3. Select Logs, and the Log Configuration, as shown in Figure 2–14 . Figure 2–14 Navigating to the Log Configuration Page The Log Configuration page is displayed.

4. Locate oracle.soa.adapter in the Logger Name list, and change the log level in the

Oracle Diagnostic Logging Level Java Level field. In this example, select Trace:32 FINEST from the list, as shown in Figure 2–15 . ADAPTER Life-Cycle Management 2-43 Figure 2–15 The Log Configuration Page For more information, see Section 2.25, Viewing Adapter Logs .

2.25 Viewing Adapter Logs

You can view the logs for Oracle JCA Adapters as follows: ■ Oracle JCA Adapters and Oracle Adapter for Oracle Applications: These adapters implement the LogManager interface of the JCA Binding Component, which redirects log files in the Oracle Diagnostic Logging ODL format. For both outbound and inbound interactions, the log files are redirected to the soa-diagnostic.log file. The log files for the Oracle SOA Suite that is deployed to the server-soa managed server are located in: MW_HOMEuser_projectsdomainsdomain_ nameserversserver-soalogssoa-diagnostic.log For more information about searching and viewing log files, see Oracle Fusion Middleware Administrators Guide. ■ Packaged-application adapters: These adapters do not implement the LogManager interface because it is not part of the J2CA 1.5 standard. Therefore, for system components the log outputs are redirected to ORACLE_INSTANCE \diagnostics\logs\component_type\component_ name. For outbound interactions, the logs are directed to the same location. On the other hand, for inbound interactions, logs are redirected to soa-diagnostic.log. Note: To ensure that log levels persist across component restarts, select Loggers With Persistent Log Level State from the View list. By default, the log level is set for runtime loggers. Runtime loggers do not persist across component restarts.