Log4j Logging in file using XML configuration

Tutorials Shared by the Internet Community



Log4j Logging in file using XML configuration


  • Total Hits - 27215

  • 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:44:55


In this tutorials we are going to see how to create simple log4j application to logging message into file using DOM Configurator with java program.org.apache.log4j.FileAppender used to log the message in file, configuration available in FileAppender is listed below. Property Description immediatlush Default value of immediate flush is true, which means that output stream of the file being flushed with each append operation. encoding Default value of encoding is platform specific encoding.we can... - See more at: http://www.javatutorialcorner.com/search/label/Log4j ...

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