log4j Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to log4j Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Q 3 - Which of the following level designates fine-grained informational events that are most useful to debug an application?

A - DEBUG

B - ERROR

C - FATAL

D - INFO

Answer : A

Explanation

DEBUG − Designates fine-grained informational events that are most useful to debug an application.

Answer : C

Explanation

r − Used to output the number of milliseconds elapsed from the construction of the layout until the creation of the logging event.

Answer : D

Explanation

Filename − The name of the log file.

Answer : A

Explanation

maxFileSize − This is the critical size of the file above which the file will be rolled.

Answer : B

Explanation

password − Sets the database password.

Q 10 - The Logger object is responsible for publishing logging information to various preferred destinations such as a database, file, console, UNIX Syslog, etc.

A - true

B - false

Answer : B

Explanation

false − The Appender object is responsible for publishing logging information to various preferred destinations such as a database, file, console, UNIX Syslog, etc.

log4j_questions_answers.htm
Advertisements