Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-2970

Spring MVC Template Project Home Controller use SLF4J logging convention

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.1.0.RELEASE
    • 3.2.0.M1
    • SUPPORT

    Description

      When preping for a tutorial talk I created a MVC project using the template project. The template project uses SLF4J in favor of commons-logging. However the HomeController supplied by the project uses an old way of logging.

      [code]logger.info("Welcome home! the client locale is "+ locale.toString());[/code]

      When using SLF4J it is recommended to use placeholders, would be nice if the template project would use this also.

      [code]
      logger.info("Welcome home! the client locale is {}" + locale);[/code]

      Attachments

        Activity

          People

            mlippert Martin Lippert
            mdeinum Marten Deinum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: