Logging system failed to initialize using configuration from 'classpath:logback-custom.xml'
时间: 2024-01-05 17:54:48 浏览: 168
配置失败的界面
Logging system failed to initialize using configuration from 'classpath:logback-custom.xml'的错误是因为找不到配置文件'logback-custom.xml'。根据提供的引用内容,有两种方式可以解决这个问题。
方式一是修改log日志文件名为'logback-spring.xml',这样就不会报错了。
方式二是直接将配置文件中的log日志配置注释掉,即将以下内容注释掉:
```
# 配置log日志
# logging:
# 指定log日志文件
# config: classpath:logback.xml
```
这样也可以避免报错。
需要注意的是,若以上两种方式都不起作用,还需要进一步检查配置文件的路径是否正确,并确保配置文件存在于指定的路径中。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Logging system failed to initialize using configuration from 'classpath:logback.xml'](https://blog.csdn.net/qq_43648299/article/details/103832227)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [Logging system failed to initialize using configuration from 'classpath:logback-test.xml'](https://blog.csdn.net/qq_25900743/article/details/79299861)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文