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

PatternLayout: truncating from the end

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.1
    • Component/s: Layouts
    • Labels:
      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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: