Huong Dan Java Logger – Part 8 – Retrieve Message to log

As the default Mule ESB Logger component, Huong Dan Java Logger will also support the Mule Expression Language (MEL) for the message. And if the user does not configure the content of the message, then the Mule Message will be returned as a string by default.

The method to build message content to log is as follows:

In the above method, we use a LOGGER variable to log the error in the process of obtaining the Mule Message as a string, the LOGGER variable is declared as follows:

Now we can get the message to log in the Processor section:

Add Comment