标签:boot file class article append root ica log4 level
http://www.qchcloud.cn/system/article/show/66添加依赖:
org.springframework.boot spring-boot-starter-log4j2 过滤: org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-logging 步骤2:
配置log4j2.xml
<?xml version="1.0" encoding="UTF-8"?>
<loggers>
<root level="all">
<appender-ref ref="Console"/>
<appender-ref ref="RollingFileInfo"/>
</root>
</loggers>
步骤3:
application.properties
log4j配置
logging.config=classpath:log4j2.xml
SpringBoot 2.1.1.RELEASE 集成log4j2
标签:boot file class article append root ica log4 level
原文地址:http://blog.51cto.com/14042154/2328661