Log4j Interview Questions and Answers
Question: What is Log4j?Answer: Log4j (Log for Java) is logging framework provided by apache foundation for java based applications.In the applicaitons, if you want to log some information, like any event triggered, or any Database updated is happened, we have the need to log the specific information or error for the useful of the application. To debug any issues in applications, we have to log the error/exceptions in the logs. For this we will use log4j mechanism. Log4j logs the information and shows this information in different targets. The different targets are called appenders (console, file etc). |
Is it helpful?
Yes
No
Most helpful rated by users:
- What is Log4j?
- What are the different logging levels?
- Describe about logger levels in log4j.
- What are the three main components in log4j?
- What is the importance of logging applications?