基本配置
log4j.rootCategory=DEBUG, console
# 打印格式
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.Threshold=DEBUG
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d %p [%c{4}] %M %m%n
# 主要配置 ehcache.xml中的配置打印
log4j.logger.net.sf.ehcache=DEBUG
log4j.logger.net.sf.ehcache.config=DEBUG
log4j.logger.net.sf.ehcache.distribution=DEBUG
log4j.logger.net.sf.ehcache.code=DEBUG
# 主要配置spring @cacheable 注解中的配置打印
log4j.logger.org.springframework.cache=TRACE