mulesoftcloudhub

Mule Cloudhub - disable custom logging deployment parameter


I am writing my mule application's cloud hub logs to external Rapid7 (log entries), by following this article. Integrate with Your Logging System Using Log4j

To enable custom logging, I have checked "Disable cloudhub logs" manually in the run time manager in cloudhub portal, as shown below. enter image description here

But every time I deploy the application Via Jenkins build pipeline, this gets unchecked. I searched for deployment parameter to set this, but couldn't find one.

I found API option to set this, but I need to call this as soon as application is deployed, and the api call will redeploy the application. https://help.mulesoft.com/s/article/How-to-disable-CloudHub-logging-using-API

Is there any better solution for this?

Runtime Version: 4.4.0


Solution

  • In the Mule Maven Plugin be sure that the configuration disableCloudHubLogs is set to true. Otherwise it may be reseting to false which according to the documentation is false.

    Documentation reference: https://docs.mulesoft.com/mule-runtime/latest/deploy-to-cloudhub#cloudhub-deploy-reference