The springboot project custom log log file prompts that the system cannot find the specified file

I tried to build a springboot project by myself, customized the log log file, and reported an error after startup

Logging system failed to initialize using configuration from 'logback-spring.xml'
java.io.FileNotFoundException: E:\code_demo\xxxx\logback-spring.xml (系统找不到指定的文件。)

insert image description here
The location of the log file:
insert image description here
problem solving: add classpath after logging.config, and then specify the log file
insert image description here

Guess you like

Origin blog.csdn.net/fortunate_leixin/article/details/128703001