1 package org.kuali.maven.mojo; 2 3 import org.apache.commons.logging.Log; 4 import org.apache.commons.logging.LogFactory; 5 import org.apache.log4j.Logger; 6 import org.junit.Test; 7 8 public class MavenLoggerTest { 9 10 @Test 11 public void commonsLogging() { 12 Log log = LogFactory.getLog(this.getClass()); 13 log.info("Hello world"); 14 } 15 16 @Test 17 public void log4jLogging() { 18 Logger logger = Logger.getLogger(this.getClass()); 19 logger.info("Hello world"); 20 } 21 }