Find legacy logger-library usage

Proprietary

Bundles java.util.logging and log4j 1.x finders. Both predate structured logging and should migrate to SLF4J or kotlin-logging.

org.openrewrite.kotlin.logging.FindLegacyLoggerLibraries$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.logging.FindLegacyLoggerLibraries$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 java.util.logging.Logger.getLogger(...) calls
  2. Find julLogger.log(level, msg) and level-specific julLogger.fine/info/severe/... calls
  3. Find org.apache.log4j.Logger references