Find org.apache.log4j.Logger references
ProprietaryLog4j 1.x reached end-of-life in 2015 and has known unfixed vulnerabilities. Migrate to log4j 2.x (org.apache.logging.log4j.Logger) or SLF4J. The migration is mechanical for the basic getLogger / log methods, but custom appenders and layouts need a manual rewrite.
org. openrewrite. kotlin. logging. FindLog4j1Logger$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. logging. FindLog4j1Logger$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.