Find LoggerFactory.getLogger(SomeClass::class.java) calls
ProprietaryLoggerFactory.getLogger(Foo::class.java) is the Java idiom Kotlin code inherited. kotlin-logging's KotlinLogging.logger { } infers the enclosing class automatically (via the stack frame at site of declaration) and avoids the ::class.java reflection round-trip.
org. openrewrite. kotlin. logging. FindLoggerFactoryGetLogger$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. logging. FindLoggerFactoryGetLogger$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.