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

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0.RELEASE
    • Fix Version/s: 3.2.0.M1
    • Component/s: SUPPORT
    • Labels:

      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

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

              Dates

              Created:
              Updated:
              Resolved: