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
-
In the Mobile Application for Handhelds perspective, choose .
-
In the Preferences dialog box, choose Trace Configuration .
-
On the Configure tab page, expand the All Locations node.
-
Expand the Mobile Applications node and choose the location.
-
Select the severity level from the Severity dropdown list.
-
Choose Add to add a handler to the selected location.
-
In the Select Handler dialog box, choose the required handler.
-
Choose OK .
-
-
Navigate to the Handler tab page.
-
Expand the Log Handler node.
-
Select the handler that you added in step five.
-
Enter or choose the desired Log file location .
-
Choose Apply .
-
Mobile Client Container Logging and Tracing
-
Launch the mobile client.
-
Log on to the mobile client with your User Name and Password .
-
Choose Log On .
-
From the System menu, choose
-
Select the Enable Trace checkbox.
-
Choose the severity level of the message from the Trace Level dropdown list.
-
Choose Save .

