title: Suppress logging in SwaggerGen
body: <p>We are using swagger code gen to generate Java REST API clients from swagger defintiions.</p>
  
  <p>During the gradle builds, we see lot lines like below getting printed in console:</p>
  
  <p><strong><em>Is there a way to set log level for swagger gen so that we do not print these INFO and other DEBUG messages during builds?</em></strong> </p>
  
  <pre><code>...
  [main] INFO io.swagger.codegen.AbstractGenerator - writing file /project/build.out/swaggerJerseyClient/src/main/java/com/test/RFC3339DateFormat.java
  [main] INFO io.swagger.codegen.AbstractGenerator - writing file /project/build.out/swaggerJerseyClient/.swagger-codegen-ignore
  [main] INFO io.swagger.codegen.AbstractGenerator - writing file /project/build.out/swaggerJerseyClient/.swagger-codegen/VERSION
  ...
  </code></pre>
  
  <p>Gradle task looks like below:</p>
  
  <pre><code>task swaggerClient(dependsOn: configurations.swagger, type: JavaExec) {
      ext {
          restapi = "$projectDir/swagger.json"
          output = "$build.out/swaggerJerseyClient"
      }
  
      inputs.file file(restapi)
      outputs.dir output
      classpath = configurations.swagger
      main="io.swagger.codegen.SwaggerCodegen"
      args = [
             "generate",
             "-i", restapi,
             "-o", output,
             "-l", "java",
             "--invoker-package", "com.test",
             "--api-package", "com.test.api",
             "--model-package", "com.test.model",
             "-DsupportJava6=true",
             "-DdateLibrary=joda",
             "-Dlibrary=jersey2"
            ]
      doFirst {
          delete output
      }
  }
  </code></pre>