Let logger be an
org.apache.logging.log4j.Logger. Find the statement that is not
2) is the correct answer and the false statement.
Should the message be logged, the Objects provided as parameters will be converted to Strings before being injected into their corresponding placeholders.
On the other hand, should the message not be logged, A) spares a String concatenation which makes statement 1 correct. The statements under 3 and 4 are also correct because in log4j users can define different appenders and layout patterns in the configuration files.
Get a free webdemo by entering your E-mail down below.
We’ll get in touch. Thank you again, for your time and feedback.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.