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

[PatternLayout] Add an ANSI option to %xThrowable

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.7
    • Layouts
    • 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 D. Gregory
        2. xThrowableJansiSiteDocs.png
          69 kB
          Gary D. Gregory

        Activity

          People

            ggregory Gary D. Gregory
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: