Enable different levels of logging for packages in different MuleSoft deployment environments, i.e., Studio, CloudHub, RTF, and standalone Mule Runtime environments for Mule 4 applications.
In this article, we shall enable DEBUG logging for HTTP Connector as an example in different environments. Please follow the same steps for enabling different log levels for other packages.
Include configuration in the application log4j2.xml file. The file log4j2.xml would be present in the folder "src/main/resources" of the project by default. Check "Change the Log Level" for additional information
<Loggers>
...
<AsyncLogger name="org.mule.service.http.impl.service.HttpMessageLogger" level="DEBUG" />
...
</Loggers>
Add the following configuration to the Settings page of the application in the Logging tab (Runtime Manager UI), i.e., Anypoint Platform. --> Runtime Manager --> {Application Name} --> Settings --> Logging Tab (Monitoring tab for CloudHub 2.0). Check "Logging Tab Settings" for additional information
DEBUG org.mule.service.http.impl.service.HttpMessageLogger
CloudHub 1.0:
CloudHub 2.0:
Use the Anypoint Runtime Manager to change the application log level by configuring the following property. Check "Change the Application Log Level" documentation for Runtime Fabric for further information.
logging.level.org.mule.service.http.impl.service.HttpMessageLogger=DEBUG
Note: The property name should contain the package name prefixed with the string “logging.level.”. A property to set DEBUG level into "org.mule.connectors" package will look like below
logging.level.org.mule.connectors=DEBUG
001116402

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.