Log4J Tutorials: Using Log4J in Easy Steps
Log4J is an Open Source logging framework managed and marketed by the apache foundation. Based on Java framework, Log4J can be deployed to any Java Program to enhance the logging functionality of the project and add log statements into the code.
Use of XMLLayout in Log4j
In the previous sections we have used PatternLayout and SimpleLayout, now we are going to describe you how to use XMLLayout class to produce logging output in the XML format.
Console Appender in Log4j
In this log4j console appender tutorial you will be introduced with ConsoleAppender which is used in Log4j for appending output on the console each and every time when any info(), debug(), error() method is invoked by the logger.