001
002package bradleyross.library.debugging;
003import org.apache.commons.logging.Log;
004import org.apache.commons.logging.LogFactory;
005/**
006 * Test for usability commons-logging API.
007 * 
008 * <p>See https://cyntech.wordpress.com/2009/01/09/how-to-use-commons-logging/ </p>
009 * @author Bradley Ross
010 * @see org.apache.commons.logging.Log
011 * @see org.apache.commons.logging.LogFactory
012 *
013 */
014public class CommonsTest implements Runnable {
015        Log logger = LogFactory.getLog(CommonsTest.class);
016        /**
017         * Carries out actual test.
018         */
019        public void run() {
020                logger.info("Using commons-logging API interface");
021                System.out.println("This is the commons-logging API interface");
022        }
023        /**
024         * Test driver.
025         * @param args not used in this class
026         */
027        public static void main(String[] args) {
028                CommonsTest instance = new CommonsTest();
029                instance.run();
030        }
031}