If I write logger.info("My value " + value);, the rule S2629 raises the issue Use the built-in formatting to construct this argument. The correct form is logger.info("My value {}", value);.

If I write logger.info("My value " + value.getName());, the rule S3457 raises the issue Format specifiers should be used instead of string concatenation. The correct form is logger.info("My value {}", value.getName());.