๐Ÿงช log4j MCQ Quiz Hub

Log4j MCQ Quiz

Choose a topic to test your knowledge and improve your log4j skills

Which of the following method of logger print a log message in info mode?





โœ… Correct Answer: 4

Mention what are the different types of Appenders?





โœ… Correct Answer: 4

Which of the following log4j objects are responsible for formatting logging information in different styles?





โœ… Correct Answer: 3

Which of the following is correct about target in Appender?





โœ… Correct Answer: 2

Which of the following method of logger print a log message in trace mode?





โœ… Correct Answer: 2

Which of the following is true about PatternLayout object?





โœ… Correct Answer: 3

What is the purpose of p character used in the conversionPattern of PatternLayout object?





โœ… Correct Answer: 2

What is the purpose of % character used in the conversionPattern of PatternLayout object?





โœ… Correct Answer: 3

What is the purpose of immediateFlush configuration of FileAppender?





โœ… Correct Answer: 1

Which of the following DatePattern configuration of DailyRollingFileAppender rolls over the logs at midnight each day?





โœ… Correct Answer: 2

Which of the following is correct about LogManager object?





โœ… Correct Answer: 3

Method creates a mock object from a domain class.





โœ… Correct Answer: 1

Grails application logging can be configured using





โœ… Correct Answer: 4

An appender that logs to a JDBC connection.





โœ… Correct Answer: 1

Which of the following is true about PatternLayout object?





โœ… Correct Answer: 4

Which of the following set the location information for the logging event using HTMLLayout?





โœ… Correct Answer: 2

Log4J also has the following logging level





โœ… Correct Answer: 4

To offer versatile logging functionality





โœ… Correct Answer: 3

What license is Log4j distributed under?





โœ… Correct Answer: 1

Who developed Log4j?





โœ… Correct Answer: 1