QuestionQ44

VerifiedApplying DevOps practices and operating integration solutions

A deployed application in a CloudHub production environment is generating intermittent exceptions. To troubleshoot the problem, a developer wants to enable DEBUG-level logging in production for the org.apache.cxf package in the deployed Mule application.

How should the developer update the logging configuration to enable package-specific debugging?

Explanation

Log4j2 enables package-specific logging through a named logger. An AsyncLogger named org.apache.cxf with level DEBUG overrides the broader logging level for that package, while leaving other packages unaffected. The revised log4j2.xml must be packaged and redeployed for the CloudHub application to use it.

Learn more

Community Discussion

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