title: log4j not working from docker container
body: <p>this is my log4j.xml content for a sample spring boot application:-</p>
  
  <p>
  </p>
  
  <p>http://jakarta.apache.org/log4j/'></p>
  
  <pre><code>&lt;appender name="consoleAppender" class="org.apache.log4j.ConsoleAppender"&gt;
     &lt;param name="Threshold" value="debug"/&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="[%t] %-5p %c{1} - %m%n" /&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  
  
  &lt;appender name="generalLogFileAppender" class="org.apache.log4j.ConsoleAppender"&gt;
  &lt;param name="AppenderImplementationClass" value="org.apache.log4j.DailyRollingFileAppender" /&gt;
      &lt;param name="FileBase" value="/app/info.log" /&gt;        
      &lt;param name="DatePattern" value="yyyy-MM-dd" /&gt;
      &lt;param name="Threshold" value="debug"/&gt;
      &lt;param name="Append" value="false"/&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="[%t] %d{M/d/yy HH:mm:ss:SSS} %-5p %c{1} - %m%n" /&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  
  &lt;root&gt;
      &lt;level value="debug" /&gt;
      &lt;appender-ref ref="consoleAppender" /&gt;
      &lt;appender-ref ref="generalLogFileAppender" /&gt;
      &lt;appender-ref ref="errorLogFileAppender" /&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p></p>
  
  <p>and I run the container using following command:-</p>
  
  <p>docker run -it --rm --name testapp -v "/test/application/region/data/user/dockerlogs":/app testapp</p>
  
  <p>logs are not getting written. I did docker inspect and can see that location is correctly mounted as /app inside container. I can even read files using /app/filename but log4j logs do not get written.</p>