SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Upload Logs from an MDK App

Allow users to upload logs from an MDK app to SAP Mobile Services.

Overview

You will learn

  • How to enable log upload feature in Mobile Services
  • How to upload logs from the app
  • How to examine log details for troubleshooting
Jitendra Kansal J Jitendra Kansal August 21, 2026
Created by October 4, 2022
Contributors

More from Jitendra Kansal

See all 34 tutorials by Jitendra Kansal →

Prerequisites

Steps

Intro

Managing issues with apps rolled out to a large number of users is a challenge and often requires deep insights into running applications to troubleshoot. For that purpose, SAP Mobile Services includes a Logging feature that enables you to gain insights into live apps. Use MDK to gather logs on client devices, to add contextual information and to automatically or manually upload them to mobile services for further inspection. You may clone an existing metadata project from the MDK Tutorial GitHub repository to start with this tutorial.


Log Upload Tutorial Overview Animation
Log Upload Tutorial Overview Animation

Step 1 Define client log policy in Mobile Services admin UI

SAP Mobile Services 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.

In this step, you will enable client log upload policy in SAP Mobile Services Admin UI for a given MDK app.

  1. Login to Mobile Services Admin UI, click myapp.mdk.demo | Client Log Upload.

    Mobile Services Client Log Upload Section
    Mobile Services Client Log Upload Section

  2. Switch to the Configuration tab, check Log Upload option and click Save.

    Log Upload Configuration Tab Save Setting
    Log Upload Configuration Tab Save Setting

    Other policy parameters such as Log Level, Delete Uploaded Log After, Maximum Number of Logs and Maximum Log Size are currently not supported by MDK and hence have no effect.

    You can find more details about Client Log Upload feature.

Step 2 Understanding Logging & Tracing in MDK
+
Step 3 Upload Logs from your App to SAP Mobile Services
+
Step 4 Examine uploaded logs in Mobile Services admin UI
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Define client log policy in Mobile Services admin UI 2. Understanding Logging & Tracing in MDK 3. Upload Logs from your App to SAP Mobile Services 4. Examine uploaded logs in Mobile Services admin UI
Next