Logging and Tracing

Use

You use this procedure to configure the SAP logging framework, which allows you to log and trace multiple messages.

Logging supports messages that are created during the regular run of a Mobile application to record events. Tracing is used to reproduce the control flow of a running Mobile application. Development support engineers require these logs and traces to see where and what activities were unsuccessful during the course of a particular operation.

The following table describes the different severity levels that can be supported by the SAP logging framework.

Severity

Description

Error

Used to provide information about what caused the activity to fail, the impact, and corrective measures to solve the problem.

Warning

Used to provide information about an activity that requires a follow-up activity to solve the problem. However, a message with this severity does not prevent the normal execution of an activity.

Information

Used to provide information to improve understanding and tracing of the business logic.

Path

Used to provide information related to the execution flow of a particular activity.

Debug

Used to provide information about the status of an activity.

Procedure

IDE Logging and Tracing

  1. In the Mobile Application for Handhelds perspective, choose Start of the navigation pathWindow Next navigation step Preferences...End of the navigation path.

    1. In the Preferences dialog box, choose Trace Configuration .

    2. On the Configure tab page, expand the All Locations node.

    3. Expand the Mobile Applications node and choose the location.

    4. Select the severity level from the Severity dropdown list.

    5. Choose Add to add a handler to the selected location.

      1. In the Select Handler dialog box, choose the required handler.

      2. Choose OK .

    6. Navigate to the Handler tab page.

    7. Expand the Log Handler node.

    8. Select the handler that you added in step five.

    9. Enter or choose the desired Log file location .

    10. Choose Apply .

Mobile Client Container Logging and Tracing

  1. Launch the mobile client.

  2. Log on to the mobile client with your User Name and Password .

  3. Choose Log On .

  4. From the System menu, choose Start of the navigation pathManage Device Next navigation step Settings Next navigation step Trace SettingsEnd of the navigation path

  5. Select the Enable Trace checkbox.

  6. Choose the severity level of the message from the Trace Level dropdown list.

  7. Choose Save .