001package bradleyross.library.debugging; 002import org.apache.log4j.Logger; 003/** 004 * Tests the ability of the system to use the log4j 1.x API. 005 * 006 * @author Bradley Ross 007 * @see org.apache.log4j.Logger 008 * 009 */ 010public class Log4j1Test implements Runnable { 011 protected Logger logger = Logger.getLogger(Log4j1Test.class); 012 /** 013 * The run method actually carries out the test. 014 */ 015 public void run() { 016 logger.info("Test"); 017 logger.error("This is the log4j 1.x API test"); 018 } 019 /** 020 * Test driver. 021 * @param args - not used in this method 022 */ 023 public static void main(String[] args) { 024 System.out.println("This is the log4j 1.x API test"); 025 Log4j1Test instance = new Log4j1Test(); 026 instance.run(); 027 } 028}