Find eager string interpolation in log.trace(...)
Proprietarylog.trace("x=$x") evaluates the template (including any toString() work on x) before the call even reaches the logger — if trace is disabled, the work is wasted. With kotlin-logging use log.trace { "x=$x" }; with SLF4J use the parameterized form log.trace("x={}", x).
org. openrewrite. kotlin. logging. FindEagerStringInterpolationInLogTrace$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. logging. FindEagerStringInterpolationInLogTrace$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.