🧪 log4j MCQ Quiz Hub

Log4j MCQ Quiz

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

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




2. Mention what are the different types of Appenders?




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




4. Which of the following is correct about target in Appender?




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




6. Which of the following is true about PatternLayout object?




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




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




9. What is the purpose of immediateFlush configuration of FileAppender?




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




11. Which of the following is correct about LogManager object?




12. Method creates a mock object from a domain class.




13. Grails application logging can be configured using




14. An appender that logs to a JDBC connection.




15. Which of the following is true about PatternLayout object?




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




17. Log4J also has the following logging level




18. To offer versatile logging functionality




19. What license is Log4j distributed under?




20. Who developed Log4j?