title: Change log level of generated CXF server with Spring Boot
body: <p>I have generated a CXF server using <a href="http://cxf.apache.org/docs/wsdl-to-java.html" rel="nofollow noreferrer">wsdl2java</a> and I'm facing issues with the resulting web service for external reasons. In order to properly debug it, I'd like to change the log level of this CXF server from default to something <strong>very</strong> verbose (DEBUG?).</p>
  
  <p>I have checked <a href="https://stackoverflow.com/questions/8065737/how-to-log-apache-cxf-soap-request-and-soap-response-using-log4j">here</a> and <a href="https://stackoverflow.com/questions/4592422/logging-request-response-with-apache-cxf-as-xml/17962979#17962979">there</a>, but I don't get it and it seems like the solutions are not adapted to my code. I have no idea where to put the pieces of code that are given and I didn't configure my Spring application with XML files.</p>
  
  <p>Here is the generated <code>ValidationPort_BasicHttpBindingValidation_Server</code> by wsdl2java:</p>
  
  <pre class="lang-java prettyprint-override"><code>// I have edited this WS a little to run it with spring instead of a main.
  @Component
  @Slf4j
  public class ValidationPort_BasicHttpBindingValidation_Server {
      public final static String ADDRESS = "http://localhost/PRE-VAROTH/Validation/V1";
  
      protected ValidationPort_BasicHttpBindingValidation_Server() {
          log.info("Starting Server");
          Endpoint.publish(ADDRESS, new BasicHttpBinding_ValidationImpl());
      }
  }
  </code></pre>
  
  <p>My logging framework is Slf4j and I'd like the log to be passed to that framework. I think I can make this part work but when I launch my server and try a sample SOAP request I don't see anything on the log or the console...</p>
  
  <p>Here is my Spring Boot entry point:</p>
  
  <pre class="lang-java prettyprint-override"><code>@SpringBootApplication
  public class Application {
      public static void main(String[] args) {
          SpringApplication.run(Application.class, args);
      }
  
      @Value("${server.http.port}")
      private int serverPortHttp;
  
      @Value("${server.port}")
      private int serverPortHttps;
  
      private Connector createHttpConnector() {
          Connector connector = new Connector("org.apache.coyote.http11.Http11NioProtocol");
          connector.setScheme("http");
          connector.setSecure(false);
          connector.setPort(serverPortHttp);
          connector.setRedirectPort(serverPortHttps);
          return connector;
      }
  }
  </code></pre>
  
  <p>How am I supposed to change properly the logging level of this CXF server?</p>