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

Exclude blank fields in JsonWriter and/or JsonTemplateLayout

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 2.16.0
    • JsonTemplateLayout
    • None

    Description

      Motivated by a StackOverflow question, add support for excluding blank fields in JsonTemplateLayout. Ideally this should be solved in JsonWriter, but this means it needs to start bookkeeping a state – I don't know if this is good or bad. (Probably bad?) The other alternative is to address this in resolvers.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vy Volkan Yazici
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: