Log4j ERROR: log4j:ERROR Could not find value for key log4j.appender.CONSOLE
解决方法:
在log4j.properties 加入以下配置
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
Log4j ERROR: log4j:ERROR Could not find value for key log4j.appender.CONSOLE
解决方法:
在log4j.properties 加入以下配置
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout