title: log4j.xml - WARN No appenders could be found for logger
body: <p>I ltried to use <code>log4j</code> loger for my simple project.</p>
  
  <p>But when I run project I cought strainge warning from log4j at console:</p>
  
  <pre><code>log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager).
  log4j:WARN Please initialize the log4j system properly.
  log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
  </code></pre>
  
  <p>I couldn't figure out why exactly this happen.  </p>
  
  <p>I added and downloaded log4j with Maven all should work.</p>
  
  <p>I specified apeender, to my mind ok it should work correctly.<br>
  But as you can see it isn't.</p>
  
  <p>Here is content of my <code>log4j.xml</code>:</p>
  
  <pre><code>&lt;!-- Appenders --&gt;
  &lt;!-- Loggin into console --&gt;
  &lt;appender name="console" class="org.apache.log4j.ConsoleAppender"&gt;
      &lt;param name="Target" value="System.out" /&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%-5p: %c - %m%n" /&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  &lt;appender name="file" class="org.apache.log4j.DailyRollingFileAppender"&gt;
      &lt;param name="file" value="/logs/log.log" /&gt;
      &lt;param name="DatePattern" value="'.'yyyy-MM-dd" /&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%d [%t] %-5p (%F:%L:%M)  %c{1}  - %m%n" /&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  
  &lt;!-- Root logger --&gt;
  &lt;root&gt;
      &lt;priority value="info" /&gt;
      &lt;appender-ref ref="file" /&gt;
      &lt;appender-ref ref="console" /&gt;
  &lt;/root&gt;
  
  &lt;!-- Application Loggers --&gt;
  &lt;logger name="com.softserve.edu"&gt;
      &lt;level value="info" /&gt;
  &lt;/logger&gt;
  </code></pre>
  
  <p>I missed standart header and footer ( tags).</p>
  
  <p>One slippery palce is that this file into <code>logs</code> folder doesn't exist (I guess that log4j will create it by itself). </p>
  
  <p>Here is my project struckture:</p>
  
  <p><img src="https://i.stack.imgur.com/OhfET.jpg" alt="project struckture"></p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I created new folder under <code>src/test/resources</code> and moved <code>log4j.xml</code> into.</p>
  
  <p>Now all are ok with this WARNING but <code>log</code> file doesn't created. </p>
  
  <p>what is wrong with this line <code>&lt;param name="file" value="/logs/log.log" /&gt;</code> ?</p>
  
  <ul>
  <li><strong>How to solve this trouble?</strong></li>
  </ul>