log4j2.xml配置
1、引入log4j2的依赖
org.springframework.boot
spring-boot-starter-log4j2
2、log4j2的配置
3、运行效果
优点:
1、运行信息彩色,更容易区分
2、console区输出info、debug等信息的位置