Find LoggerFactory.getLogger(this::class.java) calls
Proprietarythis::class.java resolves the runtime class — fine for non-final classes, but kotlin-logging's KotlinLogging.logger { } already infers the declaring class lexically and avoids the runtime reflection. Either form binds the same logger name for a final class.
org. openrewrite. kotlin. logging. FindLoggerFactoryGetLoggerWithThisClass$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. logging. FindLoggerFactoryGetLoggerWithThisClass$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.