title: Logback groovy configuration not working in production
body: <p>I'm trying to log all STDOUT in a production environment using logback and grails 3 </p>
  
  <p>this is my configuration in logback.groovy:</p>
  
  <pre><code>if (Environment.PRODUCTION) {
      appender("STDOUT", FileAppender) {
          file = "/home/alfresco/log/stdout.log"
          append = true
          encoder(PatternLayoutEncoder) {
              pattern = "%level %logger - %msg%n"
          }
      }
      logger("grails.app", ERROR, ['STDOUT'], false)
  }
  </code></pre>
  
  <p>it creates the file but no log is going into the file, what is wrong with my configuration?</p>