Does CloudHub normally use a project's log4j2.xml file?

Prepare for the MuleSoft Developer 2 Certification Exam. Access practice quizzes featuring flashcards and multiple choice questions with explanations. Get confident and ready for your certification success!

Multiple Choice

Does CloudHub normally use a project's log4j2.xml file?

Explanation:
CloudHub runs apps with its own logging setup. The platform provides a default log4j2.xml that defines the log levels and how logs are emitted for all deployed apps. Because of this, the log4j2.xml you include in your project isn’t used automatically by CloudHub. Only if you explicitly configure the runtime to adopt your own logging configuration—such as supplying a different log4j2.xml on the classpath and directing the runtime to use it—would your file take effect. So, by default, CloudHub uses its own logging configuration.

CloudHub runs apps with its own logging setup. The platform provides a default log4j2.xml that defines the log levels and how logs are emitted for all deployed apps. Because of this, the log4j2.xml you include in your project isn’t used automatically by CloudHub. Only if you explicitly configure the runtime to adopt your own logging configuration—such as supplying a different log4j2.xml on the classpath and directing the runtime to use it—would your file take effect. So, by default, CloudHub uses its own logging configuration.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy