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

PatternLayout: truncating from the end

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.1
    • Layouts
    • None

    Description

      The first case I've met: I'd like to print only first letter of the log record priority. %1.1p leads to R,N,O,G,E letters (not very friendly).
      For example it will be nice to specify a negative number after dot and truncate token from the end.

      Attachments

        Issue Links

        Activity

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

          People

            Unassigned Unassigned
            apomelov Alexey Pomelov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment