当前位置:网站首页>Solution: log4j:warn please initialize the log4j system properly

Solution: log4j:warn please initialize the log4j system properly

2022-07-06 10:55:00 Programmer seven seven

background :
springboot+maven+mybatis project , An error is as follows :


resolvent :
stay resources New file in directory log4j.properties, Add the following code :

log4j.rootLogger=WARN, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n

The relevant screenshots are as follows :

Link to the original text :https://blog.csdn.net/lezeqe/article/details/103805338

 

 

原网站

版权声明
本文为[Programmer seven seven]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060911411461.html