Find eager log-message construction

Proprietary

Bundles 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$KtRecipe
mod 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.

  1. Find eager string interpolation in log.trace(...)
  2. Find eager string interpolation in log.debug(...)
  3. Find eager string interpolation in log.info(...)
  4. Find eager string interpolation in log.warn(...)
  5. Find eager string interpolation in log.error(...)
  6. Find string concatenation in log.trace(...)
  7. Find string concatenation in log.debug(...)
  8. Find string concatenation in log.info(...)
  9. Find string concatenation in log.warn(...)
  10. Find string concatenation in log.error(...)