在分支处记录日志。
1、方便调试;
2、可以当注释使用,便于日后维护。
如:
if{
log.debug("记录进入该分支的条件");
}else if(){
}else{
}
记录日志
原文:http://www.cnblogs.com/whmbky/p/7954615.html