Introduction
When running an app on SAP BTP, setting a higher log level (debug or trace) is needed for debugging purposes on a single log node. Setting the SapLogLevel variable changes the log level for all nodes, which generates excessive log messages and can overwhelm the log subscriber.
Environment
Applications hosted in SAP Business Technology Platform
Instructions/Procedure
To set the log level for specific log nodes on SAP BTP, use the LOGGING_CONFIG variable. There are two methods to configure this:
Method 1: Using SAP BTP Cockpit
- Navigate to the SAP Cloud Platform cockpit
- Create a new User-Provided Variable for the app with:
- Key:
LOGGING_CONFIG - Value:
{"LOGNODE1":"LEVEL","LOGNODE2":"LEVEL"}. For example{"ODataConnector": "TRACE"}or{"Core": "ERROR","ODataConnector": "TRACE"}

- Key:
- Save the User-Provided Variable
- Restart the app to activate the setting
Method 2: Using Mendix Portal
- In the Mendix Portal, navigate to the Runtime tab
- Add the
LOGGING_CONFIGvariable in the Custom Environment Variables section - Use the same key-value format as in Method 1:
- Key:
LOGGING_CONFIG - Value:
{"LOGNODE":"LEVEL"}
- Key:
- Deploy or restart the application
This method allows developers to configure log levels without accessing the SAP BTP cockpit directly.
Outcome
After completing the steps in this article, the log level of a single log node is set to the level desired.
Internal information related
223032
Additional information
- Mendix documentation:
- Related KBA: Changing log levels for apps running on SAP BTP
0 Comments