title: Maven project log4j not working
body: <p>I have a simple maven project and trying to get log4j implemented.</p>
  
  <p>deploying to local tomcat.  Nothing printing in console of eclipse where I have logger.debug().</p>
  
  <p>Am I missing something?</p>
  
  <p>This is my structure:<a href="https://i.stack.imgur.com/VFePR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VFePR.png" alt="enter image description here"></a></p>
  
  <p>pom.xml:</p>
  
  <pre><code>&lt;!-- http://mvnrepository.com/artifact/log4j/log4j --&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;log4j&lt;/groupId&gt;
  &lt;artifactId&gt;log4j&lt;/artifactId&gt;
  &lt;version&gt;1.2.17&lt;/version&gt;
  &lt;/dependency&gt; 
  </code></pre>
  
  <p>Class:</p>
  
  <pre><code>final static Logger logger = Logger.getLogger(myclass.class);
  </code></pre>
  
  <p>.properties file</p>
  
  <pre><code># Root logger option
  log4j.rootLogger=INFO, stdout
  log4j.rootLogger=DEBUG, stdout
  log4j.rootLogger=ERROR, stdout
  # Direct log messages to stdout
  log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  log4j.appender.stdout.Target=System.out
  log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p     %c{1}:%L - %m%n
  </code></pre>