001package bradleyross.library.debugging;
002import org.slf4j.Logger;
003import org.slf4j.LoggerFactory;
004/**
005 * Tests ability to work with slf4j API.
006 * @author Bradley Ross
007 * 
008 * <p>I am having a problem in that the links for Logger and 
009 *    LoggerFactory do not link to the external Javadocs.</p>
010 * <ul>
011 * <li>see <a href="http://www.slf4j.org/apidocs/org/slf4j/Logger.html" target="_blank">org.slf4j.Logger</a></li>
012 * <li>see <a href="http://www.slf4j.org/apidocs/org/slf4j/LoggerFactory.html" target="_blank">org.slf4j.LoggerFactory</a></li>
013 * </ul>
014 * @see org.slf4j.Logger
015 * @see org.slf4j.LoggerFactory
016 */
017// FIXME find out why Logger and LoggerFactory can't be clicked on
018public class Slf4jTest implements Runnable {
019        /**
020         * slf4j logger class.
021         * 
022         */
023        protected static Logger logger = LoggerFactory.getLogger(Slf4jTest.class.getName());
024        /**
025         * Runs the actual test.
026         */
027        public void run() {
028                logger.info("This is the slf4j API example");
029                System.out.println("This is the slf4j API example");            
030        }
031        /**
032         * Test driver
033         * @param args not used in this program
034         */
035        public static void main(String[] args) {
036
037                Slf4jTest instance = new Slf4jTest();
038                instance.run();
039
040        }
041
042}