
You use the trace objects com.sap.tc.logging.Category and com.sap.tc.logging.Location to access log and trace mechanisms.
All trace objects read their configuration information from the Log Configurator.
More information: Log Configurator Service
In the example adapter, access to the logging API is completely wrapped in the XITrace class.
If you are migrating an older adapter version, you can also can also apply this class in your project.
XITRace implements XI AF Tracing API. Instantiate the TRACE object as follows:
instead of:
All trace objects read their configuration information from the Log Configurator service. The settings are updated once a minute. Therefore, the trace object takes at most one minute to react to any possible changes.
Use entering(), exiting(), throwing() and catching()throughout the adapter code, particularly in the message processing area. The trace is used by SAP Support to determine the location and cause of the error.