Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2324

PatternLayout handling of Throwable alternate separator doesn't accept special characters?

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.11.0
    • None
    • Layouts

    Description

      When attempting to use an alternate line separator for Throwable stack lines, it seems impossible to use special characters like \t \r \n or anything else.  It also seems impossible to use variable references so one cannot use ${sys:line.separator} as well as other characters.

      In the case of simple uses of \t \r \n or anything else are converted to plain text, actually resulting in "\t" in the output.

      %-5level - %d{yyyy.MM.dd hh:mm:ss zzz} [%t @ %logger{1}] - %msg%n%ex{separator(\r\n\t)}%n
      

       If there's a way to do this, it isn't clear in the documentation.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            robross0606@gmail.com Robert Ross

            Dates

              Created:
              Updated:

              Slack

                Issue deployment