4. From Mule Palette view, search for «logger» and select the first one.
Drag and Drop Logger into Message Flow view, after Set Payload
Double click on Logger
on below Logger view let’s configure our log message. In this example we keep a prefix and then the payload
message (configured in SetPayload block):
#['I Am logging the message : '+payload]
Click on SAVE at top-left of screen
5. Now we can start our Mule server
Right Click on myfirstproject Run As Mule Application
On the Console view below server is going to start
At the end you will see the status DEPLOYED
**************************************************************
* myfirstproject * default * DEPLOYED *
**************************************************************
This means that server is up and running
6. From Web Browser (IE, Chrome, or
what you want) let’s invoke our
service endpoint:
http://localhost:8081/myfirstFlo
If everithing is ok you will see the
payload
--------------------------------------
----------
This time, on Console, there is also
the log message composed
before.
The part highlighted in RED is our
custom message
The part highlighted in BLUE is our
payload