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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

733


What is java collection? : java collections

809


Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword

1805


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

2110


What are the types of the main implementing classes in the map interfaces? : java collections

838


What are the uses of the set interfaces in the java collections? : java collections

747


can u draw class/object diagram for ATM

5758


What is an algorithm in java collection framework? : java collections

798


What are the types of java collections? : java collections

731


what is mean by hasing and maping in java platform and advantage?

2084


What is deque in the java collections framework? : java collections

727


please mail me the interview question based on java/j2ee

1720


Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?

2767


Should we create system software ( e.g operating system ) in java ?

787


What are the different types of classes implemented in the set interfaces? : java collections

825