You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Piotr Karwasz (Jira)" <ji...@apache.org> on 2022/08/03 05:57:00 UTC

[jira] [Created] (LOG4J2-3566) DefaultLogBuilder is not garbage-free

Piotr Karwasz created LOG4J2-3566:
-------------------------------------

             Summary: DefaultLogBuilder is not garbage-free
                 Key: LOG4J2-3566
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3566
             Project: Log4j 2
          Issue Type: Improvement
          Components: API
    Affects Versions: 2.18.0
            Reporter: Piotr Karwasz


The default {{LogBuilder}} often calls the varargs {{MessageFactory#newMessage(String, Object...)}} method although a more appropriate method might be available in {{MessageFactory2}}.

We could add all {{MessageFactory2}} methods as default methods in {{MessageFactory}} to solve the problem.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)