Log4j Example using xml configuration

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Log4j Example using xml configuration Java Tutorial Corner

Statistics

  • Total Hits - 26836

  • 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:47:34

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.javatutorialcorner.com/search/label/Log4j ...


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

Advertisements