What is Log4J and it's advantages & disadvantages ?

Showing Answers 1 - 3 of 3 Answers

Rahul Mishra

  • Apr 13th, 2007
 

Log4j API is an Apache project. It provides you the logging mechanism. which allows you to direct the debug & error (basically) statments onto a particular file/database/messaging system etc. Its provide a much cleaner way to store the output statment during the program execution. It can record information upto a class level. For ex: You have X, Y, Z ...N classes....lets say Z classe has thrown and exception/error which you logged using Log4j, while finding the rootcause you would see those error/debug files...It will show you the absolute class name as well, if configured so. Log4j is fully configurable using either. properties or .xml.
Disadvantage is it take 5 nanoseconds each time to log a statement or when it is invoked.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions