title: Upgrade log4j to last version
body: <p>I'm using grails 2.5.x and i want to update log4j</p>
  <p>I added</p>
  <pre><code>dependencies {
      compile group: 'org.apache.logging.log4j', name: 'log4j-1.2-api', version: '2.17.0'
      compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.0'
      compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.0'
      compile group: 'org.slf4j', name: 'log4j-over-slf4j', version: '1.7.32'
      compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.32'
  }
  
  grails.war.resources = { stagingDir -&gt;
      delete(file:&quot;${stagingDir}/WEB-INF/lib/log4j-1.2.17.jar&quot;)
  }
  </code></pre>
  <p>when I execute grails run-app works but when I create the war file and deploy in tomcat:</p>
  <pre><code>Caused by: groovy.lang.GroovyRuntimeException: failed to invoke constructor: public org.apache.log4j.PatternLayout(java.lang.String) with arguments: [] reason: java.lang.IllegalArgumentException: wrong number of arguments
  </code></pre>