---
title: "logback日志配置无效，没有日志输出"
author: "mutourenoo"
date: "2018-07-24T19:38:13Z"
tags: []
categories: ["编程语言"]
slug: "logback"
draft: false
lastmod: "2018-07-24T19:38:13Z"
id: 2427432
url: "https://mutourenoo.iteye.com/blog/2427432"
---

logback日志配置无效，没有日志输出


解决方法：
1.删除项目中jar包依赖
<exclusions>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-log4j12</artifactId>
                </exclusion>
            </exclusions>

2.logback.xml文件中，如果想要过滤掉某个包下的日志输出，应该如下配置：

<Logger name="com.xxx.xxx" level="WARN"/>

Logger必须大写，小写不起作用