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

Pattern layout %notEmpty outputs when any variable in the pattern is not empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.11.1
    • None
    • Pattern Converters
    • None

    Description

      Pattern Layout manual for %notEmpty specifies:

      Outputs the result of evaluating the pattern if and only if all variables in the pattern are not empty.

      However, using a pattern that has a combination of empty and non-empty variables is outputted.

      E.g. %notEmpty{%n%throwable}

      Attachments

        Activity

          People

            Unassigned Unassigned
            Coryf88 Coryf88
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: