title: Dropwizard Jersey logging request/response as ERROR, but why?
body: <p>I have added this line </p>
  
  <pre><code>environment.jersey().register(new LoggingFeature(Logger
      .getLogger(LoggingFeature.class.getName()), Level.OFF, 
            LoggingFeature.Verbosity.PAYLOAD_TEXT, null));
  </code></pre>
  
  <p>in my <code>run(Configuration configuration, Environment environment)</code> method looking at <a href="https://stackoverflow.com/questions/40171273/how-to-print-server-responses-using-loggingfeature-in-dropwizard-1-0-2">this</a> and <a href="https://stackoverflow.com/questions/17213568/how-to-log-json-responses-in-dropwizard-jersey">this</a> </p>
  
  <p>I am only getting stuff in the logs if the <code>Level</code> is set to <code>OFF</code> and all my requests/response messages are logged as ERROR, but why ERROR?</p>
  
  <p>Here is an example of the log:</p>
  
  <pre><code>ERROR  [11:17:41.603] [dw-31 - GET /helloworld] o.g.j.l.LoggingFeature -  1 
  
  * Server has received a request on thread dw-31 - GET /helloworld
  1 &gt; GET http://localhost:8080/helloworld
  1 &gt; Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
  1 &gt; Accept-Encoding: gzip, deflate, sdch, br
  1 &gt; Accept-Language: en-US,en;q=0.8
  1 &gt; Cache-Control: max-age=0
  1 &gt; Connection: keep-alive
  1 &gt; Cookie: openid_provider=openid; _ga=GA1.1.1009619719.1483436711
  1 &gt; Host: localhost:8080
  1 &gt; Upgrade-Insecure-Requests: 1
  1 &gt; User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36
  
  ERROR  [11:17:41.615] [dw-31 - GET /helloworld] o.g.j.l.LoggingFeature -  1 * Server responded with a response on thread dw-31 - GET /helloworld
  1 &lt; 200
  </code></pre>
  
  <p>My Resource class:</p>
  
  <pre><code>@Path("/helloworld")
  @Produces(MediaType.APPLICATION_JSON)
  public class HelloWorldResource {
  
      public HelloWorldResource() { }
  
      @GET
      public Response helloWorld(){
          System.out.println("Hello World");
  
          return Response.ok().build();
  
      }
  }
  </code></pre>
  
  <p>My main application class:</p>
  
  <pre><code>public class ApiApplication extends Application&lt;ApiConfiguration&gt;{
  
  public static void main(String[] args) throws Exception{
      new ApiApplication().run(args);
  }
  
  @Override
  public void initialize(Bootstrap&lt;ApiConfiguration&gt; bootstrap) {
      // nothing to do yet
  }
  
  @Override
  public void run(ApiConfiguration apiConfiguration, Environment environment) throws Exception {
  
      final TemplateHealthCheck healthCheck =
              new TemplateHealthCheck(apiConfiguration.getTemplate());
      environment.healthChecks().register("template", healthCheck);
  
      final HelloWorldResource helloWorldResource = new HelloWorldResource();
      final JerseyEnvironment jerseyEnvironment = environment.jersey();
      jerseyEnvironment.register(helloWorldResource);
  
      jerseyEnvironment.register(new LoggingFeature(Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME), Level.OFF, LoggingFeature.Verbosity.PAYLOAD_ANY, Integer.MAX_VALUE));
  
      }
  }
  </code></pre>