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

Add default value to MdcPatternConverter

    XMLWordPrintableJSON

Details

    Description

      When using %X in a pattern I can't define default value if the value does not exist in MDC.

      I will be great to be able to define one like:

      pattern
      %X{key}{hello}
      

      Attachments

        1. Add_default_value_to_MDC_converter.patch
          7 kB
          Izek Greenfield
        2. Add_documentation_.patch
          2 kB
          Izek Greenfield

        Activity

          People

            Unassigned Unassigned
            igreenfi Izek Greenfield
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: