title: Can't use logging in jsp page
body: <p>i am using the following libraries for logging:</p>
  
  <ul>
  <li><strong>slf4j-api 1.6.4</strong></li>
  <li><strong>slf4j-log4j12 1.6.4</strong></li>
  <li><strong>commons-logging 1.1.1</strong> </li>
  </ul>
  
  <p>and my <strong>log4j.properties</strong> file:</p>
  
  <pre><code>log.dir=logs
  rrd.dir=${log.dir}/rrd
  datestamp=yyyy-MM-dd/HH:mm:ss.SSS
  roll.pattern.hourly=.yyyy-MM-dd.HH
  roll.pattern.daily=.yyyy-MM-dd
  
  
  log4j.rootLogger=ON
  
  log4j.appender.myConsoleAppender=org.apache.log4j.ConsoleAppender
  log4j.appender.myConsoleAppender.layout=org.apache.log4j.PatternLayout
  log4j.appender.myConsoleAppender.layout.ConversionPattern=%d{${datestamp}} [%t] %-5p %m%n
  
  
  
  log4j.appender.myFileAppender=org.apache.log4j.DailyRollingFileAppender
  log4j.appender.myFileAppender.DatePattern=${roll.pattern.hourly}
  log4j.appender.myFileAppender.File=${log.dir}/MyAPP.log
  log4j.appender.myFileAppender.layout=org.apache.log4j.PatternLayout 
  log4j.appender.myFileAppender.layout.ConversionPattern=%d{${datestamp}} [%t] %-5p %m%n
  
  
  log4j.logger.com.myapp=DEBUG, myConsoleAppender, myFileAppender
  </code></pre>
  
  <p>in the <strong>jsp page</strong> i do the following:</p>
  
  <pre><code>&lt;%@page import="org.apache.commons.logging.*"%&gt;
  
  &lt;%
  
          Log log = LogFactory.getLog(getClass());
  
          log.debug("login page");
  </code></pre>
  
  <p><strong>NOTE:</strong> logging is working fine in java classes.</p>
  
  <p>please advise why it's not working, thanks.</p>