QuestionQ38

VerifiedDesigning and developing Mule applications

A large life sciences customer intends to use the Mule Tracing module with Mapped Diagnostic Context (MDC) logging operations to enrich logging in its Mule application and improve tracking by adding more context to the Mule application logs. The customer also wants to increase throughput and reduce message-processing latency in its Mule application flows.

After installing the Mule Tracing module in the Mule application, how should logging be performed in Mule application flows, and what should be changed in the log4j2.xml files?

Explanation

Mule Tracing Set logging variable operations must run before Core Logger components so their values are available in the event logging context. Log4j2 pattern layouts must use %MDC to render that context. Asynchronous logging uses a separate thread, allowing message processing to continue without waiting for log handling, which improves throughput and reduces processing latency; this is configured with an AsyncLogger element.

Learn more

Community Discussion

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