What action must be performed to log all the errors raised by the VM Connector?

Refer to the exhibit.

What action must be performed to log all the errors raised by the VM Connector?
A . Add <AsyncLOgger name=’orgroute.extensions vm’ level=ERROR’I> inside the Logger tag
B . Add <AsyncLOgger name=’orgroute.extensions vm’ level=ERROR’/> inside the Appenders tag
C . Configure <Logger level-‘ERROR’/> inside the VM Connector configuration
D . Nothing, as error-level events are automatically logged

Answer: B

Explanation:

To log all the errors raised by the VM Connector, the developer needs to add an async logger with the name ‘org.mule.extension.vm’ and the level ‘ERROR’ inside the appenders tag of the log4j2.xml file. This will enable logging all error-level events generated by the VM Connector to the console appender.

References: https://docs.mulesoft.com/mule-runtime/4.3/logging-in-mule#configuring-custom-logging-settings

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments