package logger;import org.apache.log4j.Logger;public class TestLogger { private Logger logger = Logger.getLogger(TestLogger.class); public void beforeLogger() { logger.info("方法开始执行///////////"); } public void afterLogger() { logger.info("方法执行完毕///////////"); }}
添加回答
举报
0/150
提交
取消