Log4j Multiple appenders using XML configuration - S

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Log4j Multiple appenders using XML configuration - See more at: http://www.javatutorialscorner.com/search/label/Log4j#sthash.2HcTw1UR.dpuf

Statistics

  • Total Hits - 27004

  • Total Votes - 6 votes

  • Vote Up - 3 votes

  • Vote Down - 3 votes

  • Domain - www.javatutorialcorner.com

  • Category - JAVA/Core JAVA

  • Submitted By - Appu T

  • Submitted on - 2014-03-22 11:41:57

Description

In this tutorials we are going to see how to create simple log4j application with multiple appenders using xml configuration.I used console appender and file appender in this example, you can use any number of appenders as your wish. Create java project called Log4jExample in your Eclipse IDE, then create package called com.javatutorialscorner.log4j.multipleappenders under log4j example,add log4j jar in your build path.I used log4j-1.2.17.jar jar for this application.you can download this jar from Apache web site.Create log4j.xml in your project... - See more at: http://www.javatutorialcorner.com/search/label/Log4j ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements