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

[PatternLayout] Add an ANSI option to %xThrowable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7
    • Component/s: Layouts
    • Labels:
      None

      Description

      See screenshot attachments.

      The idea is to print out exceptions to the console using colors to make some information more obvious and liven things up. The current style choices are arbitrary as are the style names Spock and Kirk.

      This is currently in branch StyledXException.

      A positive side effect of this code is that extended exceptions are rendered on a StringBuilder so less garbage is generated.

        Attachments

        1. xThrowableJansi.png
          170 kB
          Gary Gregory
        2. xThrowableJansiSiteDocs.png
          69 kB
          Gary Gregory

          Activity

            People

            • Assignee:
              garydgregory Gary Gregory
              Reporter:
              garydgregory Gary Gregory
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: