Migrate Log4j 1.x to SLF4J 1.x

MSAL

Transforms usages of Log4j 1.x to leveraging SLF4J 1.x directly. Note, this currently does not modify log4j.properties files.

org.openrewrite.java.logging.slf4j.Log4j1ToSlf4j1
mod run . --recipe=org.openrewrite.java.logging.slf4j.Log4j1ToSlf4j1

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. Migrate Log4j 1.x MDC to SLF4J MDC
  2. Migrate Log4j 1.x to Log4j 2.x
  3. Migrate Log4j 2.x to SLF4J 1.x