News for hackers. Stuff that matters.
Re:_Application.Run(Object, Object, Object, Object, Object, ... by jdmichal on Monday January 10, 2022 @10:55AM (#29876718)
SLF4J Loggers define up to two arguments for precisely this purpose:

https://www.slf4j.org/apidocs/org/slf4j/Logger.html#error(ja......)

> This form avoids superfluous string concatenation when the logger is disabled for the ERROR level. However, this variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the method, even if this logger is disabled for ERROR. The variants taking one and two arguments exist solely in order to avoid this hidden cost.

There are no comments on this comment yet.