Find LoggerFactory.getLogger migration candidates

Proprietary

Bundles the SLF4J LoggerFactory.getLogger shapes — class-literal, this::class.java, and string-name. Each is a candidate for kotlin-logging's KotlinLogging.logger { }.

org.openrewrite.kotlin.logging.FindLoggerFactoryMigrationCandidates$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.logging.FindLoggerFactoryMigrationCandidates$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 LoggerFactory.getLogger(SomeClass::class.java) calls
  2. Find LoggerFactory.getLogger(this::class.java) calls
  3. Find LoggerFactory.getLogger("some-name") calls