title: Log4j doesn't print to console
body: <p>I put a dependency of log4j in pom.xml file:</p>
  
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
              &lt;version&gt;2.10.0&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>wrote the following log4j.properties file: </p>
  
  <blockquote>
    <p>log4j.rootLogger=INFO, stdout, console
    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</p>
  </blockquote>
  
  <p>and put this file under 'resources' folder. </p>
  
  <p>Lastly, I put environment variable LOG4J_log4j.configurationFile = log4j.properties</p>
  
  <p>Still, when I run my application, the line: </p>
  
  <pre><code>logger.info("Hello");
  </code></pre>
  
  <p>does not write anything to console. 
  Do you know what can be the problem? </p>