title: failing to load log4j2 while running fatjar
body: <p>i am working on a project where i utilize log4j2 logging. 
  while developing in intellij, all works fine and the logging is done as expected. the log4j2.xml is linked through java property passed to jvm on startup via intellij settings.
  but once i try to run a standalone gradle built fat-jar, i'm experiencing the following problems:</p>
  
  <pre><code>java -Dlog4j.debug=true -Dlog4j.configurationFile=/home/aaa/log4j2.xml -jar /home/aaa/myjar-SNAPSHOT.jar
  </code></pre>
  
  <p>exceptions:  </p>
  
  <pre><code>ERROR StatusLogger Unrecognized format specifier [d]
  ERROR StatusLogger Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.
  ERROR StatusLogger Unrecognized format specifier [thread]
  ERROR StatusLogger Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.
  ...
  ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
  </code></pre>
  
  <p>i don't even understand where those [thread]s come from, since i get the same error even while using a basic simplest config in my log4j2:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;&lt;Configuration status="WARN" monitorInterval="86400"&gt;
  &lt;Appenders&gt;
      &lt;Console name="console-log" target="SYSTEM_OUT"&gt;
          &lt;PatternLayout
                  pattern="%-5p %d{yyyy-MM-dd HH:mm:ss.SSS} ${hostName} %c{1} %msg %throwable{7}%n"/&gt;
      &lt;/Console&gt;
  &lt;/Appenders&gt;
  &lt;Loggers&gt;
      &lt;Root level="info" additivity="false"&gt;
          &lt;AppenderRef ref="console-log"/&gt;
      &lt;/Root&gt;
  &lt;/Loggers&gt;
  </code></pre>
  
  <p></p>
  
  <p>any thoughts are welcome. thanks.</p>