Skip to Content

Upload Logs from an MDK App

Allow users to upload logs from an MDK app to SAP Mobile Services.
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
jitendrakansalJitendra KansalOctober 26, 2025
Created by
jitendrakansal
October 4, 2022
Contributors
maximilianone
jitendrakansal

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.

MDK
  • Step 1

    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 Cockpit for a given MDK app.

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

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

      MDK

      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

    Logs help you trace events that occur while your application is running. You can create logging actions, set their priority levels and upload stored log entries. using the MDK, you can set up logging in one of two ways:

    The MDK template generates a project that includes a user menu with support options, making it easier for initial troubleshooting without having to create logging, tracing, or upload actions. Of course, you can create your own actions or rules and add them to your project when needed.

    MDK

    Which feature of SAP Mobile Services collects and displays log information collected on the device?

  • Step 3
  • Step 4

    Open SAP Mobile Services Cockpit, click Mobile Applications Native/MDK click myapp.mdk.demo app Client Log Upload Log Files.

    MDK

    A log file is created for each upload. All the uploaded files, including all levels, not just error or fatal will be listed here. You can select a file and download it locally on your machine for further examination.

    Check documentation for more details about Uploading and Viewing Client Logs.


Back to top