@slf4j和logback-spring.xml
时间: 2023-10-24 15:00:25 浏览: 119
slf4j,logback.xml
在使用slf4j和logback-spring.xml时,你需要进行以下几个步骤。
1. 导入依赖:使用logback.xml,需要引入ch.qos.logback.logback-classic和ch.qos.logback.logback-core这两个依赖。如果你使用的是springboot,那么springboot的starter会自带这两个依赖,不用再重复导入。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *3* [使用@Slf4j和logback-spring.xml搭建日志框架](https://blog.csdn.net/weixin_45866737/article/details/124044258)[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^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* [SpringBoot集成slf4j日志和logback.xml配置详解](https://blog.csdn.net/qq_29864051/article/details/130881230)[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^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文