Connected to the target VM, address: '127.0.0.1:65401', transport: 'socket'
log4j:ERROR Could not find value for key log4j.appender.stdout.layout
此log4j:ERROR Could not find value for key log4j.appender.XXXX类型报错与log4j.properties文件写法有关系
处理方法:将log4j.properties 文件内容修改如下,注意log4j.rootLogger的写法:
# Output pattern : date [thread] priority category - message
log4j.rootLogger=WARN,CONSOLE,RollingFile#CONSOLE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n#RollingFile
log4j.appender.RollingFile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.RollingFile.File=logs/signserver.log
log4j.appender.RollingFile.layout=org.apache.log4j.PatternLayout
log4j.appender.RollingFile.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n#Project default level
log4j.logger.com.ntko.sign=debug