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

Improved printf() support.

    XMLWordPrintableJSON

Details

    Description

      I was excited to see log4j2 supports "printf-style messages"; however, I was disappointed to learn it was not supported by the standard logging methods.

      The standard log methods do support the "{}" formatting, but not "%" formatting.  The "printf()" method is cumbersome and a longer syntax.

      Thus, I would like to see one of the following two improvements:

      1) Have the standard log methods support both "{}" and "%" formatting.

      2) Add methods for tracef(), debugf(), infof(), warnf(), errorf(), fatalf().

      Respectfully submitted, -RF

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            robertfwi Robert F
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: