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