http://blog.csdn.net/haidage/article/details/6794509
http://blog.csdn.net/haidage/article/details/6794529
http://www.blogjava.net/justfly/archive/2014/08/10/416768.html
现在一般项目都选择用logback而不是log4j,自己在项目中用到。先用着。有时间再详细了解。