title: How to log all headers of request/response in Tomcat 7
body: <p>I'm trying to log all headers of request/response in Tomcat 7. I tried to use <a href="http://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Access_Log_Valve" rel="noreferrer">access-log-valve</a>. But as mentioned in the link, we can print headers only one by one. We have to specify each and every header we need. </p>
  
  <p>e.g.</p>
  
  <pre><code>pattern="%{User-Agent}i %{Content-Type}i %{Accept}i %{Accept-Encoding}i
  %{Accept-Language}i %{Accept-Charset}i %r %h %q"
  </code></pre>
  
  <p>Isn't there a way to log all headers at once, may be using a wildcard?</p>
  
  <p>Thanks.</p>