I have often heard people saying that its one of the best practices to avoid String Concatenation and use {} instead while logging.
I was
The benefit of format strings in logging systems is, that the logging system can decide if the string concatenation must happen or not.
Let's use these lines as example:
log.debug("Count: " + list.size());
log.debug("Count: {}", list.size());
As long as the level for this logger is debug or below, there is no difference in performance, but if the log level is higher than debug the second line won't perform the concatenation at all.