Grails
  1. Grails
  2. GRAILS-8635

Can't use Log4j DSL shortcuts for layouts (xml, html, simple)

    Details

      Description

      appenders {
         file name: 'fileAppender', layout: xml, file: '/tmp/logs/applog.xml'
      }
      

        Activity

        Hide
        Volker Schmelich added a comment -

        It looks to me like this change breaks the ability to reference other config properties in the log4j config.
        For example, http://burtbeckwith.com/blog/?p=329 uses System.setProperty 'mail.smtp.port', mail.error.port.toString().
        With Grails 2.0.1 all logging fails and the tomcat stderr log shows:
        log4j:ERROR Property missing when configuring log4j: mail
        log4j:ERROR WARNING: Exception occured configuring log4j logging: Cannot get property 'error' on null object

        Show
        Volker Schmelich added a comment - It looks to me like this change breaks the ability to reference other config properties in the log4j config. For example, http://burtbeckwith.com/blog/?p=329 uses System.setProperty 'mail.smtp.port', mail.error.port.toString(). With Grails 2.0.1 all logging fails and the tomcat stderr log shows: log4j:ERROR Property missing when configuring log4j: mail log4j:ERROR WARNING: Exception occured configuring log4j logging: Cannot get property 'error' on null object

          People

          • Assignee:
            Burt Beckwith
            Reporter:
            Burt Beckwith
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development