Start of Content Area

Background documentation Logging and Tracing   Locate the document in its SAP Library structure

Logging and tracing is essential for analyzing problems. It is offered for all components required for SAP NetWeaver PI.

Components Based on AS ABAP

The Integration Engine uses logging and tracing to log and analyze the processing steps of messages.

While a message is being processed by the pipeline of the Integration Engine, the current status of the message is logged as a separate message version (log version).

Traces in XML format are attached to the message and the entire message is saved (persisted) in the database. No message data is persisted in the file system.

You can view message log versions and traces by using the message monitor of the Integration Engine.

More information: Logging and Tracing

Components Based on AS Java

The Java-based parts all use the standard logging of AS Java. This can be configured by using the log configuration function of the SAP NetWeaver Administrator under Problem Management Logs and Traces Log Configuration (alias: /nwa/log-config).

On the Integration Server host (Enterprise Services Repository and Integration Directory may be installed on another server), <Javadir>stands for the following in the table below (where n specifies the number of cluster nodes):

/usr/sap/<SAPSID>/<instance_name>/j2ee/cluster/server<n>

Log and trace files (where n specifies the number of files):

Content

File

Path

Default server trace

defaultTrace<n>.trc

<Javadir>/log

Tracing is activated by default. To change the preset trace level, perform the following steps:

...

       1.      Call Log Configuration.

       2.      Show the Tracing Locations.

       3.      Select a location.

       4.      Change the Severity to the required value.

Available locations in the default server trace are:

Component

Location

Enterprise Services Repository

com.sap.aii.ib

com.sap.aii.ibrep

com.sap.aii.ib...     (sources used by ESR & Directory because of shared Framework)

      sbeans.* (Beans)

      client.* (Client)

      gui.*  (UI Classes)

      core.* (Classes for Server+Client)

      server.* (Server)

      web.* (Servlets)

      com.sap.aii.utilxi.*   (Utility classes of Framework - used by ESR & Directory) 

Enterprise Services Repository

Object Types

com.sap.aii.ibrep.server.persist.alert

com.sap.aii.ib.bom.bpm.*

com.sap.aii.ibrep.gui.bpm.*

com.sap.aii.ibrep.server.persist.bpm.*

Enterprise Services Repository

User interface elements for conditions, expressions and properties

com.sap.aii.ib.bom.condition.xi71.* 

com.sap.aii.ib.bom.gen.container.* 

com.sap.aii.ib.bom.gen.property.* 

com.sap.aii.ib.gui.condition.freetexteditor.* 

com.sap.aii.ib.gui.container.* 

com.sap.aii.ib.gui.extractor.* 

com.sap.aii.ib.gui.propertyview.*

Integration Directory

com.sap.aii.ib

com.sap.aii.ibdir.sbeans.* (Beans)

com.sap.aii.ibdir.client.* (Directory Client)

com.sap.aii.ibdir.gui.* (Directory UI Classes)

com.sap.aii.ibdir.core.* (Classes for Server+Client)

com.sap.aii.ibdir.server.* (Directory Server)

com.sap.aii.ibdir.web.* (Servlets)

Mapping Runtime

com.sap.aii.ib

com.sap.aii.ibrun

Runtime Workbench

com.sap.aii.mdt

com.sap.aii.rwb

Adapter Engine

com.sap.aii.af

com.sap.aii.adapter

Adapter Framework security

com.sap.aii.security

Messaging runtime

com.sap.aii.messaging

Proxy framework

com.sap.aii.proxy.framework

Proxy runtime

com.sap.aii.proxy.xiruntime

General adapter locations

com.sap.aii.adapter* (rnif, rnif11, cidx, bc, mail, file, jdbc)

RFC, JMS, JDBC, File adapters

com.sap.aii.af.service*

RFC adapter

com.sap.aii.af.rfc

SOAP and Mail adapter

com.sap.aii.af.sdk

SOAP adapter

com.sap.aii.af.mp.soap

Additional locations for RNIF adapters and CIDX adapter

com.sap.aii.af.sdk.*(rnif,rnif11,cidx)

com.sap.aii.af.protocol.ispeak

XML validation

com.sap.aii.utilxi.xml

User-defined message search

com.sap.aii.af.service.search

Java Web services runtime

com.sap.engine.services.webservices.*

com.sap.engine.interfaces.webservices.*

 

Logging is activated by default. To change the preset log level, perform the following steps:

...

       1.      Call the Log Configuration.

       2.      Show the Logging Categories.

       3.      Choose ROOT CATEGORY Applications Exchange Infrastructure Adapter or Adapter Framework.

       4.      Navigate to the required category and choose it.

       5.      Change the Severity to the required value.

Old logs are compressed (zipped up) to save disk space. By default, logs are written to a maximum of five files with 10MB capacity of each file. Thus, when this set of five files is full, the system rotates back to the first file and starts overwriting the old logs. Before overwriting the old logs, the log configuration function backs up the five files into a zip file. So, each zip file contains a set of five log files. The logs within these zip files are called archive logs.

You can view traces, log files, and archive logs by using the log viewer function of the SAP NetWeaver Administrator under Problem Management Logs and Traces Log Viewer (alias: /nwa/logs).

More information: Log Viewing.

 

Available logging categories under :

ROOT CATEGORY Applications ExchangeInfrastructure

Logging Categories

Description

Adapter

Sample adapter for adapter development

AdapterFrameworkAdapterEngineModulesRootMODULE_PROCESSOR

Module processor

AdapterFrameworkResourceAdapterAFWServlet

HTTP access to Adapter Framework messaging system

AdapterFrameworkResourceAdapterBc

SAP Business Connector adapter

AdapterFramework ResourceAdapterRfc

RFC adapter

→ AdapterFrameworkSAPLibraries SAPXDK

Access to PI message object during runtime

→ AdapterFramework → Services → ADAPTER → ADMIN → Conversion

CSV conversion of file adapter

→ AdapterFramework → Services → ADAPTER → ADMIN → File

File adapter

→ AdapterFramework → Services → ADAPTER → ADMIN → JDBC

JDBC adapter

→ AdapterFramework → Services → ADAPTER → ADMIN → JMS

JMS adapter

→ AdapterFramework → Services → ADAPTER_APPLICATION

Conversion module application in module processor

→ AdapterFramework → Services → AuditLog

Audit log application

→ AdapterFramework → Services → CPACache

Adapter Framework Integration Directory cache

→ AdapterFramework → Services → Licence

Adapter Framework licensing service

→ AdapterFramework → Services → MP

Adapter Framework modules in Module Processor

→ AdapterFramework → Services → SLD

Adapter Framework access service to System Landscape Directory (SLD)

→ AdapterFramework → Services → TREX

Adapter Framework access service to TREX

→ AdapterFramework → Services → Util

Adapter Framework utilities

→ AdapterFramework → ThirdPartyRoot

Optional category for partner adapters

 

End of Content Area