title: Prevent log4j2 from creating parent folder of a log file if it doesn't exist
body: <p>As the title of the question states, is it possible to avoid creating parent folders of log4j2 File appender log file if they don't exist?
  Actually, when I pass the non-existing parent folder of the file appender log it will be created automatically by log4j2.
  I have already tried to see if there is an attribute on the <code>File</code> tag but there is nothing.</p>
  
  <p><a href="https://logging.apache.org/log4j/2.x/manual/appenders.html" rel="nofollow noreferrer">https://logging.apache.org/log4j/2.x/manual/appenders.html</a></p>
  
  <pre><code>&lt;Appenders&gt;
          &lt;Console name="Console" target="SYSTEM_OUT"&gt;
              &lt;PatternLayout
                  pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" /&gt;
          &lt;/Console&gt;
          &lt;File name="File" fileName="${sys:app.home}/app.log"
              ignoreExceptions="false"&gt;
              &lt;PatternLayout
                  pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" /&gt;
          &lt;/File&gt;
  &lt;/Appenders&gt;
  </code></pre>