Karaf 4.0.5 with log4j2: my bundle log output always in console but should be in file
<p>I configured Karaf 4.0.5 in order to fix this <a href="https://stackoverflow.com/questions/35288889/karaf-stops-unexpectedly?s=1|3.7849">issue</a>, but log output from my bundles is shown only in karaf console, not in the file. It works in Karaf 4.0.3.
Any ideas why the output from my bundles is present only in Karaf console? <br/> The changes that I made to configure log4j2:</p>

<ol>
<li><p>startup.properties (corresponding jars are in ${karaf.system} folder):</p>

<p>mvn:org.ops4j.pax.logging/pax-logging-api/1.8.5 = 8<br>
(this line is commented) mvn:org.ops4j.pax.logging/pax-logging-service/1.8.5 = 8<br>
mvn:org.ops4j.pax.logging/pax-logging-log4j2/1.8.5 = 8<br>
mvn:com.lmax/disruptor/3.3.2 = 8</p></li>
<li><p>org.ops4j.pax.logging.cfg:</p>

<p>org.ops4j.pax.logging.log4j2.config.file = ${karaf.etc}/log4j2.xml
org.ops4j.pax.logging.log4j2.async = true</p></li>
<li><p>system.properties</p>

<p>log4j.configurationFile=file:${karaf.etc}/log4j2.xml</p>

<p>org.ops4j.pax.logging.DefaultServiceLog.level = DEBUG</p>

<p>Log4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector</p></li>
<li><p>log4j2.xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;Configuration status="ALL"&gt;    
&lt;Appenders&gt;
    &lt;RollingRandomAccessFile name="oapiserver" fileName="data/log/log4j2.log" filePattern="data/log/oapi-%d_%i.log.gz" immediateFlush="false"&gt;
        &lt;ThresholdFilter level="DEBUG"/&gt;
        &lt;PatternLayout&gt;
            &lt;pattern&gt;%level{length=1} %date{MMdd-HHmm:ss,SSS} %logger{1.} %message [%thread]%n&lt;/pattern&gt;
        &lt;/PatternLayout&gt;
        &lt;Policies&gt;
            &lt;TimeBasedTriggeringPolicy/&gt;
            &lt;SizeBasedTriggeringPolicy size="50 MB"/&gt;
        &lt;/Policies&gt;
        &lt;DefaultRolloverStrategy max="10000"/&gt;
    &lt;/RollingRandomAccessFile&gt;
&lt;/Appenders&gt;

&lt;Loggers&gt;
    &lt;Root level="DEBUG"&gt;
        &lt;AppenderRef ref="oapiserver"/&gt;
    &lt;/Root&gt;
&lt;/Loggers&gt;
</code></pre>

<p></p></li>
</ol>