Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1080

logback.xml to logback.groovy translator should output single quote strings.

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 1.1.3
    • logback-classic
    • None

    Description

      The logback.xml to logback.groovy translator is currently generating code like this:

      logger("foo.Bar", INFO)
      

      This causes invalid code in case of inner classes, e.g.

      logger("foo.Bar$Foobar", INFO)
      

      because the $ is used for variable replacement in Groovy.

      I'd suggest to always use

      {'}

      (single quote) for strings, e.g.

      logger('foo.Bar$Foobar', INFO)
      

      Attachments

        Activity

          People

            logback-dev Logback dev list
            jhuxhorn Joern Huxhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: