You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Robert F (JIRA)" <ji...@apache.org> on 2019/02/26 20:10:00 UTC

[jira] [Created] (LOG4J2-2557) Improved printf() support.

Robert F created LOG4J2-2557:
--------------------------------

             Summary: Improved printf() support.
                 Key: LOG4J2-2557
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2557
             Project: Log4j 2
          Issue Type: Improvement
          Components: Core
    Affects Versions: 2.11.1
            Reporter: Robert F


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

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)