To Log Data (Design Center)

You add one or more Logger utilities to a flow to log information from the Mule event or static messages that you specify in the log. Logging information is helpful for troubleshooting and taking a quick look at the output at some point in the flow. You can use expresssions to create the log message. The following table lists some examples.

Expression Description


The full contents of the payload.

The value of "id", a child element of "user" in the payload


The value of an attribute named "myAttribute"


The value of a variable named myVariable

"ID of user sending request " ++

Some static text concatenated with the value of "id".


The value of "name", a child element of "user" in the payload, converted to upper case characters.

To view logs, you expand the area at the bottom of Design Center:

log view
  1. In Design Center add a Logger to your flow.

  2. In Message, click Function logger task design center 0a147 to use an expression.

    If you just want to log static text, do not click Function. Just type the text.

  3. Type an expression. For example:


  4. Accept the default log level DEBUG or choose another setting to log less information. For example, choose INFO.

  5. Click Run.

  6. Execute the flow by sending a mock request.

  7. Expand the Logs tab at the bottom of the screen.

    to debug a flow designer project 30b5a

    The contents of the Mule message payload appear after Info along with .logs produced by the Logger components in your project and messages related to the running, executing, and deploying the app.

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.