Nav

About Logging

To help debug your app, you can use log statements that follow your app’s state, which reside in the Mule messages that flow through your configuration and, possibly, custom code.

  • In Anypoint Studio, log output is visible in the Console view, for example:

    
                
             
    1
    2
    3
    4
    5
    
    INFO  2018-02-23 12:27:28,178
    [[MuleRuntime].cpuLight.02:[me].myFlow.CPU_LITE @6953d516]
    [event: 0-f75a5dd0-18d7-11e8-9fd8-38c9864c2f8f] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: {
      "example": "{     \"id\": 1,     \"name\": \"Leanne Graham\" }"
    }
  • If you run Mule from the command line, logs are visible in your OS console. Mule’s standalone logging configuration is stored in <Mule Installation Directory>/conf/log4j2.xml. This is your $MULE_HOME directory.

In this topic:

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.

+