ppkarwasz opened a new issue, #1262:
URL: https://github.com/apache/logging-log4j2/issues/1262

   ## Description
   
   While logger methods with `Supplier<?>` in the signature are the easiest way 
to log lazily, we should also detect when users pass suppliers as `Object` 
parameters. It would be nice if:
   
   ```lang-java
   log.info("The {} {} {} jumps over the {}.", brown, quick, fox, (Supplier<?>) 
() -> "lazy dog");
   ```
   
   gave the same result as:
   
   ```lang-java
   log.info("The {} {} {} jumps over the {}.", () -> brown, () -> quick, () 
->fox, () -> "lazy dog");
   ```
   
   ## References
   
   This proble appears in a [StackOverflow 
question](https://stackoverflow.com/q/75326876/11748454), but probably in many 
more.


-- 
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