springboot2项目logback日志配置不生效解决

问题描述:springboot2.7.8项目,引入了spring-boot-starter-logging依赖,配置文件中有logback-spring.xml,在logback-spring.xml中指定了日志目录,项目正常启动,控制台日志也正常输出,但logback-spring.xml中指定的日志文件未生成。