Find eager log-message construction
ProprietaryBundles the trace/debug/info/warn/error eager-interpolation and string-concatenation finders. Every hit is a candidate for migration to kotlin-logging's lambda form (log.debug { "..." }) or SLF4J's parameterized form (log.debug("x={}", x)).
org. openrewrite. kotlin. logging. FindEagerLogMessages$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. logging. FindEagerLogMessages$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.
Recipe list
It runs these recipes, in this order.
- Find eager string interpolation in
log.trace(...) - Find eager string interpolation in
log.debug(...) - Find eager string interpolation in
log.info(...) - Find eager string interpolation in
log.warn(...) - Find eager string interpolation in
log.error(...) - Find string concatenation in
log.trace(...) - Find string concatenation in
log.debug(...) - Find string concatenation in
log.info(...) - Find string concatenation in
log.warn(...) - Find string concatenation in
log.error(...)