import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class MyApp { private static final Log LOG = LogFactory.getLog(MyApp.class); public static void main(String[] args) { LOG.debug("Debug message"); LOG.info("Info message"); LOG.warn("Warning message"); LOG.error("Error message"); } } org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger


上一篇:
下一篇:
切换中文