Logger
Logger
• Use the Logger 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.
Configuration
• Visual Editor • XML view
<logger message="Hello logger"
level="INFO"
doc:name="Logger"/>
Configuration wizard
Description
Property Description
Display Name Value which is to be shown in mule flow
Message Value which is to be log
Level Specify the level at which the message should be logged.
Category Optionally specify a category name and configure it in thelog4j2.xml file to behave
per your use case. For example, you can route log messages based on category or
set log levels based on category.
Level
• Mule component logger supports following log levels:
• ERROR
• WARN
• INFO
• DEBUG
• TRACE
Thanks

Logger

  • 1.
  • 2.
    Logger • Use theLogger 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.
  • 3.
    Configuration • Visual Editor• XML view <logger message="Hello logger" level="INFO" doc:name="Logger"/>
  • 4.
  • 5.
    Description Property Description Display NameValue which is to be shown in mule flow Message Value which is to be log Level Specify the level at which the message should be logged. Category Optionally specify a category name and configure it in thelog4j2.xml file to behave per your use case. For example, you can route log messages based on category or set log levels based on category.
  • 6.
    Level • Mule componentlogger supports following log levels: • ERROR • WARN • INFO • DEBUG • TRACE
  • 7.