0

log4j:WARN No appenders could be found for logger

今天从别的项目拷贝了一些代码到新的项目,启动的时候出现下面警告提示: 2020-04-14 09:51:17.570 INFO 16612 --- [ main] c.d.c.ChatserverdemoApplication : Starting ChatserverdemoApplication on qxwu with PID 16612 (E:\testdemo\target\classes started by wujun in E:\testdemo) 2020-04-14 09:51:17.574 INFO 16612 ---...

阅读全文>>

1

springboot log4j DatePattern 配置不起作用的问题

在springboot当中配置了log4j输出到文件: # LOG4J配置 log4j.rootCategory = INFO,stdout,file log4j.appender.file = org.apache.log4j.DailyRollingFileAppender log4j.appender.file.file = logs/web.log log4j.appender.file.DatePattern = '.'yyyy-MM-dd log4j.appender.file.layout = org.apache.log4j.PatternLayout l...

阅读全文>>