You want to configure JSON Logger to correctly display logs when deploying an application and upload it to your Anytpoint Exchange for easy reference in applications.
Disclaimer - The JSON Logger is developed by the MuleSoft Professional Services team, to output the logs in a "human readable" JSON format. The repository and set-up instructions can be found in the GitHub repository. Please note that the JSON logger is not an official MuleSoft product and therefore there is NO support available for it.
For any questions or support related to the JSON logger, please contact MuleSoft Services Team through the GitHub repository
For GovCloud, please follow this article.
The JSON logger referenced in the MuleSoft blog post (https://blogs.mulesoft.com/dev/anypoint-platform-dev/json-logging-mule-4/) is outdated. It does not support Java 17, and the original repository is no longer maintained.
For a Java 17 compatible JSON logger, please use the solution provided here: https://github.com/salesforce-misc/mulesoft-json-logger
As the JSON logger is not an official Mule product, you have the following options to use this logger in your app:
A. You can deploy JSON logger with a connected app:
How to publish json-logger to Exchange using a connected app
B. You may download the asset from MuleSoft Service Exchange Account using the credentials provided in the blog post, and then install it to your own local Maven repository.
C. You may download the asset from GitHub, and then upload it into your own Exchange, following the steps and running the script deploy.sh described in https://blogs.mulesoft.com/dev/anypoint-platform-dev/json-logging-mule-4.
D. Upload the asset to your own Exchange but without using the script:
</servers> <!-- MuleSoft Nexus EE Repository --> <server> <id>MuleRepository</id> <!-- Provided by Support --> <username>CUSTOMER_EE_REPO_USER</username> <password>CUSTOMER_EE_REPO_PASS</password> </server> <!-- Customer Exchange Repository --> <server> <id>Exchange2</id> <!-- NOTE: In order to be able to publish assets to exchange, this user will need Exchange Contributor Role --> <username>ANYPOINT_PLATFORM_USER</username> <password>ANYPOINT_PLATFORM_PASS</password> </server> </servers>
➜ cd json-logger-mule-4.x/json-logger ➜ ls README.md icon pom.xml pom.xml.original src
➜ mvn deploy --settings ../template-files/settings.xml
001116864

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.