一、pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
<version>3.1.2</version>
</dependency>
二、application.yml
com.lingyang.system
# ===== log4j2配置 =====#
logging:
level:
com.lingyang.system: debug