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

Syslog suffixPattern property cant start with a character in range [a-zA-Z0-9]

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.9, 1.0.10
    • Fix Version/s: 1.0.10
    • Component/s: None
    • Labels:

      Description

      The actual prefix that is prepended to every message issued to syslog is
      "%syslogStart

      {" + getFacility() + "}

      %nopex"
      As this prefix does not contains a final space, the logback parser will interpret the %noexp concatenated with the next string, resulting in something like this:
      suffixPattern: "test"
      message received in rsyslog: %PARSER_ERROR[nopextest]

      It is not possible to define a suffixPattern starting with a space as the xml parser trims the data inside the tags. As there is no workaround to achieve this, this bug cant have a priority lesser than major

      Thanks

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                logback-dev Logback dev list
                Reporter:
                polaco Bruno Polaco
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: