Log4j Example using xml configuration

Tutorials Shared by the Internet Community

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

Log4j Example using xml configuration

Log4j Example using xml configuration
http://www.javatutorialscorner.com/2013/08/log4j-example-using-xml-configuration.html
  • Total Hits: 4533

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 0 votes

  • Category: JAVA/Core JAVA

  • Submitted on: 2014-03-22 11:47:34

  • Submitted By: Appu T

  • Set as Favorite

Description:

In this tutorials we are going to see how to create simple log4j application using XML file Configuration with java program, previously we have seen log4j application using log4j using Property Configurator we can obtain same output using XML configuration file. log4j.propertieslog4j.propertieslog4j.rootLogger= Debug,consolelog4j.appender.console=org.apache.log4j.ConsoleAppenderlog4j.appender.console.layout=org.apache.log4j.PatternLayoutlog4j.appender.console.layout.ConversionPattern=%r [%t] %p %c %x - %m%nCreate java project called Log4jExample... - See more at: http://www.javatutorialscorner.com/search/label/Log4j    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 0%  0
 Two starsTwo star  Vote LeftVote MiddleVote Right 0%  0
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 0%  0
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 0%  0
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 0%  0

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.






Advertisements