QuestionQ6

VerifiedImplement monitorable Mule applications

A Mule application that processes orders must include the order ID in every emitted log message.

What is a best practice for enriching all log messages with the order ID?

Explanation

Mule’s Tracing module sets logging variables in the Mapped Diagnostic Context (MDC), supplying event-specific fields that Log4j2 can render across Logger and Mule runtime log output. This provides consistent order-ID enrichment without repeating the field in every logger configuration.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!