Application Logging
Application Logging on SAP BTP covers the concepts, services, and practices used to capture, structure, and retrieve runtime log data from applications and integration artifacts running on Cloud Foundry and Kyma, enabling troubleshooting, monitoring, and production support across the BTP landscape.
Overview
Application Logging on SAP BTP covers the concepts, services, and practices used to capture, structure, and retrieve runtime log data from applications and integration artifacts running on Cloud Foundry and Kyma, enabling troubleshooting, monitoring, and production support across the BTP landscape.
Lessons in this topic
- BTP Application Logging Part 1: Why Logs Matter on BTPLearn how BTP applications produce and store logs: log levels, structured JSON logs, the application logging/observability services for Cloud Foundry, dashboards for search, and the difference between application logs and Integration Suite message processing logs.
- BTP Application Logging Part 2: Configuring and Consuming Logging on Cloud FoundrySet up logging for Cloud Foundry apps: create and bind the logging service instance (via MTA), use SAP logging libraries for Java and Node.js to produce structured logs, set log levels dynamically, mask sensitive data, and manage retention and cost.
- BTP Application Logging Part 3: Log Correlation and Troubleshooting Across ServicesTrace one business request across app router, CAP services, external APIs and integration flows using correlation IDs; combine application logs with Integration Suite message processing logs; and run a structured troubleshooting approach for distributed BTP solutions.
Interview questions covered
- What are the core concepts of Application Logging, and how would you explain them clearly in an SAP interview?
- How would you apply Application Logging in a real SAP project? Walk through the design or implementation approach.
- A production issue is reported in Application Logging. What would you check first, and how would you troubleshoot it systematically?
- What are the most important design decisions, trade-offs, and best practices in Application Logging?
- Suppose you inherit an existing Application Logging solution. How would you review it before making a change?
- An order confirmation fails sometimes across app router, CAP and an iFlow. How do you trace and fix it?
- Configure logging for a CAP application on Cloud Foundry.
- Support can't diagnose intermittent failures in a BTP app because logs are unstructured and short-lived. What do you set up?
How to study Application Logging
Application Logging has 3 lessons (1 beginner, 1 intermediate, 1 advanced) with about 13 minutes of reading in total. Start with the lesson that matches your level, then read the real project scenario and common mistakes in each one before moving on. After the lessons, say the 8 interview questions out loud in your own words, then check yourself against the model answer in each question (shown once you open it). Use the 13 mock questions to check recall.
Mock test questions covered
Try answering each one before you open the mock test; the answer options and scoring are in the Mock Questions tab.
- Why are structured (JSON) logs preferred on BTP?
- An integration developer needs to log a custom key-value pair, such as an order ID extracted from the payload, so that it appears as a searchable custom header in the Message Processing Log overview. Which MessageLog method is designed for this purpose?
- In SAP Cloud Integration (part of SAP Integration Suite), which log level must be assigned to an integration flow to capture full payload content, including headers and body, at each processing step for detailed troubleshooting?
- During root-cause analysis, a developer wants to attach a custom text snippet (such as an intermediate variable value) to the Message Processing Log at a specific point in an integration flow's processing. Which Groovy script call is most appropriate?
- A company wants to ensure that sensitive customer data in message payloads is never persisted in the Message Processing Log, regardless of the log level set on individual integration flows. Which capability addresses this requirement?
- Which of the following best describes a key operational risk of leaving multiple production integration flows permanently set to Trace log level?
- An integration developer wants to add a custom entry to the Message Processing Log (MPL) from within a Groovy script so it appears alongside standard log steps in the Monitor Message Processing view. Which object should the script use to achieve this?
- A support engineer notices that an integration flow set to Trace log level automatically reverted to a lower log level after some time without manual intervention. What is the primary reason SAP Cloud Integration behaves this way?
- Which statement best describes the purpose of Message Processing Logs (MPL) in SAP Cloud Integration?
- Customer emails were found in DEBUG logs. What is the right fix?
- How do you trace one user request across app router, CAP service and an iFlow?
- When a new integration flow is deployed in SAP Cloud Integration without explicitly changing its logging configuration, what is the default log level applied to it?
- Where in SAP Integration Suite would an administrator go to change the log level of a specific deployed integration flow without redeploying it?