You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Marc Boorshtein <mb...@gmail.com> on 2017/01/26 20:08:34 UTC

wire/header logs on log4j2?

I have http-client 4.5.2 and core 4.4.4 running on log4j2 with the
compatibility jars in place for 1.2.  I can't seem to get wire or debug
logs working.  Here's my log4j2.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
  <Appenders>
    <Console name="STDOUT" target="SYSTEM_OUT">
      <PatternLayout pattern="[%d][%t] %-5p %c{1} - %m%n"/>
    </Console>
  </Appenders>
  <Loggers>

    <Root level="info">
      <AppenderRef ref="STDOUT"/>
    </Root>
<Logger name="org.apache.http.headers" level="debug" additivity="false">
      <AppenderRef ref="STDOUT"/>
    </Logger>
  </Loggers>
</Configuration>

I don't get any output from htto client.  Am I missing something?

Thanks
Marc