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

Provide truncation point for stringified stack traces in JsonTemplateLayout

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

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

            • Assignee:
              vy Volkan Yazici
              Reporter:
              rgrabowski Ron Grabowski

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment