Enable request logging in Jetty 9.1
Today I wanted to have a more detailed look into the requests coming into one of my applications using Eclipse Jetty. While it is easy enough to see incoming requests by enabling logging for class org.eclipse.jetty.server.Server (via the standard java logging API or SLF4J), adding a method to log incoming request headers is on a different level. After digging around in the documentation and the sourcecode for a while, this is what I came up with:...