配置状态已发送到WARN但仍在控制台中获取DEBUG消息

时间:2015-10-14 17:37:28

标签: java logging log4j log4j2

我的配置状态设置为“WARN”,但我的控制台中仍然有一堆调试行。

这是我的log4j2.xml文件

<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
  <Appenders>
    <Console name="Console" target="SYSTEM_OUT">
      <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
    </Console>
  </Appenders>
  <Loggers>
    <Root level="info">
      <AppenderRef ref="Console"/>
    </Root>
  </Loggers>
</Configuration>

但我仍然得到这样的东西

10:33:38.154 [main] DEBUG org.apache.http.headers - http-outgoing-1 >> Accept-Encoding: gzip,deflate
10:33:38.154 [main] DEBUG org.apache.http.wire - http-outgoing-1 >> "POST /regexui/request HTTP/1.1[\r][\n]"
10:33:38.154 [main] DEBUG org.apache.http.wire - http-outgoing-1 >> "Content-type: application/json[\r][\n]"

0 个答案:

没有答案