title: Grails WAR on Tomcat "Log4J" not working at all
body: <p>I have log4j DSL correctly configured in my Config.groovy in a grails applicaiton. Running the application with grails run-app dumps perfect logging as I specified in the DSL. However after doing a grails war to generate a war file and deploying it to tomcat, logging just disappears. I can't see it working anywhere, except tomcat console showing millions of log statements at debug level and nothing going specific to my logging into log files.</p>
  
  <hr>
  
  <pre><code>log4j = {
          appenders {
                   appender new org.apache.log4j.DailyRollingFileAppender(name: "tomcatLog", datePattern: "'.'yyyy-MM-dd", file: "${logDirectory}/snm.log".toString(), layout: pattern(conversionPattern: '[%d{yyyy-MM-dd hh:mm:ss.SSS}] %p %c{5} %m%n'))
          }
          root {
              info 'stdout', 'tomcatLog'
              additivity = true
          }
          info    'grails.app',
                  'grails.app.controller',
                  'grails.app.bootstrap',
                  'grails.app.service',
                  'grails.app.task',
                  'commons',
                  'jsontwitter'
      }
  </code></pre>
  
  <p>Can you please explain the above DSL? It send commons.* and jsontwitter.* classes logs to designated log file but no controller, services log is saved in file.</p>
  
  <p>Thanks,
  Alam Sher</p>