public class LoginAction extends BaseAction { if (log.isDebugEnabled()) { log.debug("LoginAction begin"); //A } //..... log.info("test info"); //B //..... log.warn("test warn"); //C //..... } |
if (log.isInfoEnabled()) { log.info("test info"); //B } |
if (log.isWarnEnabled()) { log.warn("test warn"); //C } |
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |