title: VertX and Log4j cannot get configuration
body: <p>I am working with VertX, I want to use Log4J as logger for my code and for the exthernal libraries. </p>
  
  <p>So I wrote down this piece of code:</p>
  
  <pre><code>import org.apache.log4j.Logger;
  
  public class Main extends AbstractVerticle {
  
     final static Logger logger = Logger.getLogger("Gimli");
  
     @Override
     public void start(Future&lt;Void&gt; fut) throws Exception {
        System.setProperty("vertx.logger-delegate-factory-class-name", " io.vertx.core.logging.Log4j2LogDelegateFactory"); // Default logger
  
      logger.debug("Debug log");
      logger.error("Error log");
      logger.warn("Warning log");
    }
  }
  </code></pre>
  
  <p>and I put into <em>src/main/resources</em> the file <em>log4j.xml</em> </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;Configuration&gt;
    &lt;Appenders&gt;
      &lt;RollingFile name="app_file" append="true" fileName="/var/log/seachlog.log" filePattern="/var/log/vertx/$${date:yyyy-MM}/seachlog-%d{MM-dd-yyyy}-%i.log.gz"&gt;
          &lt;PatternLayout pattern="%d{ISO8601} %-5p %c:%L - %m%n" /&gt;
          &lt;Policies&gt;
              &lt;OnStartupTriggeringPolicy /&gt;
              &lt;SizeBasedTriggeringPolicy size="5MB" /&gt;
              &lt;TimeBasedTriggeringPolicy /&gt;
          &lt;/Policies&gt;
      &lt;/RollingFile&gt;
      &lt;RollingFile name="vertx_file" append="true" fileName="/var/log/vertx.log" filePattern="/var/log/vertx/$${date:yyyy-MM}/vertx-%d{MM-dd-yyyy}-%i.log.gz"&gt;
          &lt;PatternLayout pattern="%d{ISO8601} %-5p %c:%L - %m%n" /&gt;
          &lt;Policies&gt;
              &lt;OnStartupTriggeringPolicy /&gt;
              &lt;SizeBasedTriggeringPolicy size="5MB" /&gt;
              &lt;TimeBasedTriggeringPolicy /&gt;
          &lt;/Policies&gt;
      &lt;/RollingFile&gt;
      &lt;Console name="STDOUT" target="SYSTEM_OUT"&gt;
          &lt;!-- &lt;LogStashJSONLayout/&gt; --&gt;
          &lt;PatternLayout pattern="%d{ISO8601} %-5p %c:%L - sfsdfsdfsdfsdf %m%n" /&gt;
      &lt;/Console&gt;
  &lt;/Appenders&gt;
  
  &lt;Loggers&gt;
      &lt;Logger name="Gimli" level="DEBUG"&gt;
          &lt;!-- &lt;AppenderRef ref="vertx_rollingFile" /&gt; --&gt;
          &lt;!-- &lt;AppenderRef ref="vertx_socket" /&gt; --&gt;
          &lt;AppenderRef ref="STDOUT"/&gt;
          &lt;AppenderRef ref="vertx_file" /&gt;
      &lt;/Logger&gt;
      &lt;Root level="DEBUG"&gt;
          &lt;!-- &lt;AppenderRef ref="vertx_socket" /&gt; --&gt;
          &lt;AppenderRef ref="STDOUT"/&gt;
          &lt;AppenderRef ref="app_file" /&gt;
      &lt;/Root&gt;
  &lt;/Loggers&gt;
  </code></pre>
  
  <p></p>
  
  <p>But the output seems not changing:</p>
  
  <pre><code>2017-12-09 09:21:34,503 DEBUG [vert.x-eventloop-thread-0] [Gimli] Debug log (Main.java:31)
  2017-12-09 09:21:34,505 ERROR [vert.x-eventloop-thread-0] [Gimli] Error log (Main.java:32)
  2017-12-09 09:21:34,507 WARN  [vert.x-eventloop-thread-0] [Gimli] Warning log (Main.java:33)
  </code></pre>
  
  <p>How can I set the configuration file correctly?</p>