Log4j Multiple appender using Property configuration

Tutorials Shared by the Internet Community

Advertisements


Synopsis

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

Statistics

  • Total Hits - 26832

  • 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:43:18

Description

In this tutorials we are going to see how to create simple log4j application with multiple appenders using property 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.properties in... - See more at: http://www.javatutorialcorner.com/search/label/Log4j ...


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

Advertisements