What is the use of log4j and how to make use of
that in a application?

Answers were Sorted based on User's Feedback



What is the use of log4j and how to make use of that in a application?..

Answer / suresh gangula

log4j can be used for writing the log messages to various
kinds of destinations like a file, database, console etc...

It is always advisable to use some sort of logging API to
generate the log messages.the log messages helps the end
user as well as the developer of the application, to kow
about what the application has done and why the application
has failed, etc...

It is developed by Apache and this is used as part of
various products like hibernate, struts, strings etc...

Is This Answer Correct ?    10 Yes 1 No

What is the use of log4j and how to make use of that in a application?..

Answer / ramarao

log4j is a mechanism to find out the proper execution flow
of our application.
for this we use third party tool log4j developed by apache.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Java J2EE AllOther Interview Questions

What is Visual Source Safe(source control Tool)?

1 Answers  


my interviewer asked me what technical specification you used how to answer that question

0 Answers  


Q1. A. Write note on "The class path Environment Variable". B. Which are different kinds of source code? Q2. A. How to create an interface? B. Why convert an applet to an application? Q3. A. How to use Media tracker Class. B. How to use string tokenizer class. Q4. A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on "The properties class" Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.

1 Answers  


What is a constructor?

4 Answers  


What is the use of log4j and how to make use of that in a application?

2 Answers  






What is the difference between Eclipse and MyEclipse?

7 Answers   IBM, Wavex,


Which interface does java.util.hashtable implement?

0 Answers  


what is java virtual machine

4 Answers  


Which sorting algorithm is used by collections.sort() in java ?

0 Answers  


How do you debug your java program?

2 Answers   HCL, Inforica,


What are the types of interface used in the java collections? : java collections

0 Answers  


Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.

0 Answers  


Categories