Chealer commented on issue #1918:
URL:
https://github.com/apache/logging-log4j2/issues/1918#issuecomment-2080326340
> * parameterized logging and string concatenation should **not** be
mixed, e.g.:
> // This is discouraged, but fine:
> logger.info("Hello " + name + "!");
> // This is recommended:
> logger.info("My name is {}.", myName);
> [...]
If this refers to [void info(String message, Object
p0)](https://logging.apache.org/log4j/2.x/javadoc/log4j-api/org/apache/logging/log4j/Logger.html#info(java.lang.String,java.lang.Object)),
then the JavaDoc is misleading. In fact, if `message` is actually a message
**template**, then the JavaDoc for lots of methods really needs to be fixed.
--
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]