Questions et réponses d'entretien les plus demandées et tests en ligne
Plateforme d'apprentissage pour la preparation aux entretiens, les tests en ligne, les tutoriels et la pratique en direct

Developpez vos competences grace a des parcours cibles, des tests blancs et un contenu pret pour l'entretien.

WithoutBook rassemble des questions d'entretien par sujet, des tests pratiques en ligne, des tutoriels et des guides de comparaison dans un espace d'apprentissage reactif.

Preparation a l'entretien

Log4j Questions et reponses d'entretien

Question 16. What is the purpose of the OFF log level?

The OFF log level is the highest possible rank and is intended to turn off logging.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 17. What is the purpose of the TRACE log level?

The TRACE log level designates finer-grained informational events than the DEBUG.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 18. What is the purpose of the WARN log level?

The WARN log level designates potentially harmful situations.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 19. How do Log Levels work or tell the log level hierarchy?

A log request of level p in a logger with level q is enabled if p >= q. This rule is at the heart of log4j. It assumes that levels are ordered. For the standard levels, we have ALL < DEBUG < INFO < WARN < ERROR < FATAL < OFF.

For example: if the log level is mentioned as 'WARN' in the log4j properties. Then the logs will be coming in the log file are: WARN, ERROR, FATAL

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 20. What are different appenders that can configure in log4j?

There are different appenders that we can configure in log4j are: CONSOLE, FILES, DATABASE, JMS, EVENT LOGGING.

Mainly used appenders:

CONSOLE in log4j:- If we use this as appenders in your application, log4j logs the information in the console or command prompt window that is started with startup script.
Files in log4j:- Files Appender is used to log the information into our custom name files. when we are configuring this appender, we can specify the file name.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Les plus utiles selon les utilisateurs :

Copyright © 2026, WithoutBook.