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

conversion word followed by a non-conversion word caues an exception

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • None
    • logback-core
    • None

    Description

      I have defined the following pattern:

      <Pattern>Zeitstempel: %date%nKontext: %contextName%nAngeforderte URI: %X

      {req.requestURI}

      %nQueryString: %X

      {req.queryString}

      %nNachricht: %msg</Pattern>

      It is intended for a SMTPAppender. The outcome is:

      Zeitstempel: 2010-11-08 12:49:54,241%PARSER_ERROR_nKontext: michael%PARSER_ERROR_nAngeforderte URI: /michael/start%PARSER_ERROR_nQueryString: %PARSER_ERROR_nNachricht: Login:: ms....

      The workaround is either enclose the %n in %() or put a space between. Anyway, this should be fixed or noted in the docs.

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            michael-o Michael Osipov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: