rgoers commented on issue #1262:
URL: 
https://github.com/apache/logging-log4j2/issues/1262#issuecomment-1434910554

   I do not believe this is practically solvable using the standard API. 
However, I propose we enhance the LogBuilder to support this so you would code:
   ```
   log.atInfo().withArg(() -> quick).withArg(() -> 
brown).withArg("fox").withArg(() -> "lazy dog").log("The {} {} {} jumps over 
the {}.");
   ```
   We could also do 
   ```
   log.atInfo().withMsg("The {} {} {} jumps over the {}.").withArg(() -> 
quick).withArg(() -> brown).withArg("fox").withArg(() -> "lazy dog").log();
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to