title: How to understand log4j.xml file
body: <p>I'm  trying to understand the following log4j.xml file:</p>
  
  <pre><code>---Item 1
  &lt;!-- Appenders --&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;
  ----Item 2
  &lt;!-- Application Loggers --&gt;
  &lt;logger name="com.somepackagename"&gt;
      &lt;level value="info" /&gt;
  &lt;/logger&gt;
  --Item 4 
  &lt;logger name="org.hibernate.validator"&gt;
      &lt;level value="debug" /&gt;
  &lt;/logger&gt;    
    ---Item 5
  &lt;!-- Root Logger --&gt;
  &lt;root&gt;
      &lt;priority value="warn" /&gt;
      &lt;appender-ref ref="console" /&gt;
  &lt;/root&gt;
  &lt;/log4j:configuration&gt;
  </code></pre>
  
  <p>Can anyone explain what each item does?</p>