Skip to content

Uploading and Viewing Client Logs

Configure and enable client logging and upload settings using the SAP Cloud Platform SDK for iOS and SAP Cloud Platform Mobile Services cockpit.

Context

View logs and trace information to troubleshoot app problems. Use search criteria to find the files and trace statements needed to diagnose a problem. Depending on the information that is captured, logs and traces can include entries from client logs, server logs, and application traces.

Procedure

  1. Configure client log settings and upload policy in the SAP Cloud Platform Mobile Services cockpit:

    Log settings for an application are applied to all installed instances of an application on SAP Cloud Platform Mobile Services. See Defining Client Log Policy for details.

    The application developer retrieves these settings at runtime to get them onto the device through the SAPcpmsSettings structure, since this does not occur automatically.

  2. The app developer configures logging and upload parameters, and the Logger and LogUploader instances.

    For detailed information, see the:

  3. View the client log using SAP Cloud Platform Mobile Services cockpit.

    See Viewing Event Logs for details.

    The SAP Cloud Platform and client both generate log files. When viewing uploaded client logs in SAP Cloud Platform Mobile Services cockpit, you see all (SAP Cloud Platform and client) logs.

Tip

Use filters, such as <Application ID> to narrow your search. Use Type(Client Log) filter to view only the client logs.

Tip

You can also follow the tutorials, beginning with Application logging and tracing published on SAP site tutorial to implement, view, and manage application logs.


Last update: August 12, 2020