1package com.vaannila.helloworld;
2
3import org.apache.log4j.Logger;
4import org.apache.log4j.xml.DOMConfigurator;
5
6public class HelloWorld {
7
8 static Logger logger = Logger.getLogger(HelloWorld.class);
9
10 public static void main(String[] args) {
11 DOMConfigurator.configure("log4j.xml");
12 logger.debug("Sample debug message");
13 logger.info("Sample info message");
14 logger.warn("Sample warn message");
15 logger.error("Sample error message");
16 logger.fatal("Sample fatal message");
17 }
18}