Skip to Content

Logging and tracing in SAP Cloud Platform mobile service for development and operations

Previous

Logging and tracing in SAP Cloud Platform mobile service for development and operations

By Robin van het Hof

Logging and tracing overview in the SAP Cloud Platform mobile service for development and operations Administration Cockpit.

You will learn

In this tutorial, you will learn to use the logging functionality and configurations available in SAP Cloud Platform mobile service for development and operations. You will also learn how to set logging levels, enable application traces, and view logs and traces.

Details


SAP Cloud Platform mobile service for development and operations provides administrators, developers and support staff with extensive logs and traces functionality to troubleshoot application issues. You can control the amount of information that is captured by setting the log level for individual logging components. Logs and traces are automatically synchronized with the server when an application is launched or switched to foreground or background on the client.

Step 1: Examine the SAP Cloud Platform mobile service for development and operations log settings

Go to your SAP Cloud Platform cockpit and log on. Navigate to Logs > Log Settings

In this screen, at the top part, you can set the logging level for each type of logging component, as well as enabling application traces:

SDK Assistant

By default, log levels are set to ERROR and application traces are set to Disable. Lowering log levels and enabling traces can impact server performance. Generally, you should lower log levels and/or enable traces only when required for debugging or user support.

In the bottom part, you can specify the logging purge periods:

SDK Assistant
Please log in to access this content.
Step 3: Change application log settings

For our application, set the following logging levels and application traces:

Component Log Level Trace
Connectivity DEBUG Enable
Offline INFO Enable
Security INFO Disable
Statistics INFO Disable

Click Save to store the changes, and navigate to Logs > Log and Trace.

By default, the log viewer displays logs and traces occurred in the last 60 minutes. You can change the filter by specifying a different time period, as well as filter by Application ID, Status, Log Type, Logging Component, and set the maximum logging entries:

SDK Assistant
Please log in to access this content.
Step 3: Examine changed log details

Since the application you created earlier should have run without errors, there should be no log entries for your application visible.

Now you have lowered the logging levels, try run your iOS application again, and check the added log entries. You can open the log details by clicking on the Log Trace button in the Log Trace column. If all is well, you should see the DEBUG Connectivity log entries like the following:

SDK Assistant
Please log in to access this content.

Next Steps

Updated 04/21/2017

Time to Complete

15 Min.

Beginner

Prerequisites

Next
Back to top