Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-494

Generated log4j.properties contains worng pattern assertion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0.RC4
    • Fix Version/s: 1.0.0.RELEASE
    • Component/s: MONITORING
    • Labels:
      None

      Description

      The generated log4j.properties looks like the following:
      #Updated at Mon Dec 28 23:29:40 CET 2009
      #Mon Dec 28 23:29:40 CET 2009
      #Updated at Mon Dec 28 23:29:40 CET 2009
      #Mon Dec 28 23:29:40 CET 2009
      log4j.appender.stdout=org.apache.log4j.ConsoleAppender
      log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
      log4j.rootLogger=INFO, stdout, R
      log4j.appender.R.File=application.log
      log4j.appender.R.MaxFileSize=100KB
      log4j.appender.R.layout=org.apache.log4j.PatternLayout
      log4j.appender.R.MaxBackupIndex=1
      log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
      log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
      log4j.appender.R=org.apache.log4j.RollingFileAppender

      The line containing "A1" has to be changed to the following to actually activate the conversion pattern for STDOUT:
      log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

      One question left: Is there any plan to change logging in ROO to the slf4j API (http://slf4j.org/)? This way the logging implementation could be changed more easily.

      Regards,
      Alex

        Attachments

          Activity

            People

            Assignee:
            sschmidt Stefan Schmidt
            Reporter:
            aheusingfeld Alexander Heusingfeld
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified