Migrate Apache Commons Logging 1.x to SLF4J 1.x

MSAL

Transforms usages of Apache Commons Logging 1.x to leveraging SLF4J 1.x directly.

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

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. Simplify a call chain
  2. Change method name org.apache.commons.logging.LogFactory getLog(..) to getLogger
  3. Change type LogFactory to LoggerFactory
  4. Change method name org.apache.commons.logging.Log fatal(..) to error
  5. Change method name org.apache.commons.logging.Log isFatalEnabled() to isErrorEnabled
  6. Change type Log to Logger
  7. Change Gradle or Maven dependency commons-logging:commons-logging
  8. Replace any Lombok log annotations with target logging framework annotation