You are on page 1of 2

1/3/2016

Log4jframeworkoverview|Tutorialspointexamples

Tutorialspointexamples
(http://tutorialspointexamples.com)
Learnjavatutorialwithexamplesforbeginnersonline
Search

Log4jOverview
Log4j:
Log4jisasimple,flexibleandfastjavabasedloggingframework.Itisthreadsafeandsupports
internationalization.

Log4jmaincomponents:
1.Logger:Itisusedtologthemessages.
2.Appender:Itisusedtopublishthelogginginformationtothedestinationlikefile,database,console
etc.
3.Layout:Itisusedtoformatlogginginformationindifferentstyles.

AdvantagesofLog4j:
Itprovidestheeasymaintenanceandfastdebugging.

DisadvantagesofLog4j:
Itslowdowntheapplication.

RelatedTopics:
Howtobuildjavaprojectusingantineclipse?(http://tutorialspointexamples.com/howtobuildjava
projectusingantineclipse/)
JAXBmarshallingconvertjavaobjecttoxmlexample.(http://tutorialspointexamples.com/jaxb
marshallingconvertjavaobjecttoxmlexampleusingonepojo/)
HowtocreatepdffileinjavausingiTextjar?(http://tutorialspointexamples.com/howtocreatepdffile
injavausingitextjar/)
Genericsclassexample.(http://tutorialspointexamples.com/genericsclassexample/)
OGNLinstruts2.(http://tutorialspointexamples.com/ognlinstruts2/)

http://tutorialspointexamples.com/log4joverview/

1/5

1/3/2016

Log4jframeworkoverview|Tutorialspointexamples

HibernateOnetoOneMappingusingxml.(http://tutorialspointexamples.com/hibernateonetoone
mappingusingxml/)
SendinlineimageinemailusingJavaMailAPI.(http://tutorialspointexamples.com/sendinlineimage
inemailusingjavamailapi/)
Quartz2JobListenerexample.(http://tutorialspointexamples.com/quartz2joblistenerexample/)

10

0
1

Share
Share

8
0

Share

Share

Log4j Tutorial
Log4joverview.(http://tutorialspointexamples.com/log4joverview/)
Loggerclass.(http://tutorialspointexamples.com/loggerclass/)
Log4jexample.(http://tutorialspointexamples.com/log4jexample/)
Log4jpropertiesfile.(http://tutorialspointexamples.com/log4jexampleusinglog4jpropertiesfile/)
Log4jxmlfile.(http://tutorialspointexamples.com/log4jexampleusinglog4jxmlfile/)
Logginglevels.(http://tutorialspointexamples.com/logginglevelsinlog4j/)
Log4jfileappender.(http://tutorialspointexamples.com/log4jfileappender/)
Log4jmultipleappenders.(http://tutorialspointexamples.com/log4jmultipleappendersexample/)

http://tutorialspointexamples.com/log4joverview/

2/5

You might also like