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

System properties are not substituted because of colon

    Details

      Description

      I have logback.xml with appender pattern:
      %d

      {HH:mm:ss.SSS}

      host:$

      {host} [%thread] %-5level %logger{36} - %msg%n

      I have "-Dhost=local" system property also.

      The result log message is:
      12:47:11.663 host:${host}

      [main] INFO ...

      But I expected:
      12:47:11.663 host:local [main] INFO ...

      If I set appender pattern to: "host: $

      {host}

      ", space after colon then all works fine.

        Attachments

          Activity

            People

            • Assignee:
              ceki Ceki Gülcü
              Reporter:
              me_delete vasily
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: