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

Provide truncation point for stringified stack traces in JsonTemplateLayout

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.14.1
    • JsonTemplateLayout
    • None

    Description

      This story aims to improve stack trace resolving in JsonTemplateLayout from

      config      = field , [ stringified ]
      field       = "field" -> (
                      "className"
                    | "message"
                    | "stackTrace"
                    )
      stringified = "stringified" -> boolean
      

      to

      config              = field , [ stringified ] , [ stackTrace ]
      field               = "field" -> ( "className" | "message" | "stackTrace" )
      
      stackTrace          = "stackTrace" -> stringified
      stringified         = "stringified" -> ( boolean | truncation )
      truncation          = "truncation" -> (
                              [ suffix ]
                            , [ pointMatcherStrings ]
                            , [ pointMatcherRegexes ]
                            )
      suffix              = "suffix" -> string
      pointMatcherStrings = "pointMatcherStrings" -> string[]
      pointMatcherRegexes = "pointMatcherRegexes" -> string[]
      

      Attachments

        Issue Links

          Activity

            People

              vy Volkan Yazici
              rgrabowski Ron Grabowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: