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

In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?

0 Answers  


What are the different types of collections views being provided by the map interface? : java collections

0 Answers  


what is the IDE that you have used to write your java programs?

2 Answers   Inforica, Interface Software,


Why do you use Context Object

2 Answers   HCL,


can u draw class/object diagram for ATM

0 Answers   HCL, Zycus Infotech,






which book is the best for preparing for SCWCD 1.5

4 Answers   Google,


what is diff string and stringbuffer

7 Answers   CTS, HCL,


Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.

0 Answers  


i need java 1+ experience resume on java developer kindly send me my mail id:srikanthreddy1.marla@gmail.com

1 Answers  


what is the difference between banking and insurance domain?

2 Answers  


Write a postfix expression to (a*(b+c/d)*d-e)

4 Answers   Adobe,


What are maps interfaces in the java collections? : java collections

0 Answers  


Categories