6
MULE Logger

Mule - logger

Embed Size (px)

Citation preview

Page 1: Mule -  logger

MULELogger

Page 2: Mule -  logger

INDEX

What is a logger?How to configure oneDo various settingsResult

Page 3: Mule -  logger

What is a logger?Logger is used to log messages such as error messages, status notifications, or exceptions. You can add a logger anywhere in a flow, and you can configure it to log anything: any string, any Mule expression, or any combination of strings and Mule expressions.

Page 4: Mule -  logger

How to configure one

Drag and drop logger from Mule palette. It will look like following -

Page 5: Mule -  logger

Do various settings

Following is the configuration wizard for logger.

For Display name - enter the name what you want to be displayed on the GUI editor.

Message – Will contain all actual message to be logged, it can be an MEL expression or some simple message, like in my case it is “I am a logger”

Page 6: Mule -  logger

Result When there will be a call to this flow from browser, the Mule HTTP Listener will

intercept it and the message will be logged on the console.