/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package log4jtest;

import log4jtest.custom.UserLogger;
import newpack.Test1;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

/**
 *
 * @author dhaval
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Logger logger = LogManager.getLogger(Main.class);
        UserLogger userLogger = UserLogger.getLogger(Main.class);

        System.out.println(logger.getClass().getName());
        System.out.println(Logger.getRootLogger().getClass().getName());
        logger.info("hello, world");

        Test1 t1 = new Test1();
        t1.hello();

//        log4jsubtest.Main.hello();

        userLogger.info("DHAVAL", "hello, world");
    }

}
