title: log4j 2: log file being created, but not being written to
body: <p>I am using log4j 2. I am trying to determine why my log file is not being written to, but my console is. This is the output I have to the console:</p>
  
  <pre><code>2016-04-25 12:26:07,142 INFO  [main] helperCode.LogPlus (LogPlus.java:50) - 
  ----------------------------------------------------------------------------
  ------------ The test is starting now at 2016-04-25-12-26-07-135 -----------
  ----------------------------------------------------------------------------
  
  2016-04-25 12:26:07,151 INFO  [main] helperCode.LogPlus (LogPlus.java:50) - 
  --------------------------------------------------------------------------
  ------------ METHOD loginBadPasswordGoodUsername_3 starting:  ------------
  --------------------------------------------------------------------------
  </code></pre>
  
  <p>The issues I've considered already:</p>
  
  <ul>
  <li>The output is not repeating itself, so the log output being redirected is not an issue.</li>
  <li>I am NOT using java.util.logging.Logger anywhere in my project;</li>
  <li>The output of the log file is formatted in log4j style rather than JUL style, so I know that JUL is not overriding it;</li>
  </ul>
  
  <p>Here is my XML config file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Configuration&gt;
      &lt;Appenders&gt;
          &lt;File name="FileLogger" fileName="${sys:logFilePath}" append="false"&gt;
              &lt;PatternLayout pattern="%d %t %-5p %c{2} - %m%n" /&gt;
          &lt;/File&gt;
          &lt;Async name="Async"&gt;
              &lt;AppenderRef ref="FileLogger" /&gt;
          &lt;/Async&gt;
          &lt;Console name="STDOUT" target="SYSTEM_OUT"&gt;
              &lt;PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n" /&gt;
          &lt;/Console&gt;
      &lt;/Appenders&gt;
      &lt;Loggers&gt;
          &lt;Logger name="automationFramework" level="trace"&gt;
              &lt;AppenderRef ref="FileLogger" /&gt;
          &lt;/Logger&gt;
          &lt;Root level="trace"&gt;
              &lt;AppenderRef ref="STDOUT" /&gt;
          &lt;/Root&gt;
      &lt;/Loggers&gt;
  &lt;/Configuration&gt; 
  </code></pre>
  
  <p>I am directing the output to the file located at the system variable "logFilePath".</p>
  
  <p>I am not sure what is going on, and the config files shown on answers for similar questions are not in XML format, so I am not sure how to commute the config file code to XML.</p>