FloggerArgumentToString
Use Flogger's printf-style formatting instead of explicitly converting arguments to strings. Note that Flogger does more than just call toString; for instance, it formats arrays sensibly.

Severity
WARNING

The problem

Prefer to let Flogger transform your arguments to strings, instead of calling toString() explicitly.

For example, prefer the following:

logger.atInfo().log("hello '%s'", world);

instead of this, which eagerly calls world.toString() even if INFO level logging is disabled.

logger.atInfo().log("hello '%s'", world.toString());

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("FloggerArgumentToString") to the enclosing element.