Migrate Apache Commons Logging 1.x to SLF4J 1.x
MSALTransforms usages of Apache Commons Logging 1.x to leveraging SLF4J 1.x directly.
org. openrewrite. java. logging. slf4j. CommonsLogging1ToSlf4j1mod run . --recipe= org. openrewrite. java. logging. slf4j. CommonsLogging1ToSlf4j1Install 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.
- Simplify a call chain
- Change method name
org.apache.commons.logging.LogFactory getLog(..)togetLogger - Change type
LogFactorytoLoggerFactory - Change method name
org.apache.commons.logging.Log fatal(..)toerror - Change method name
org.apache.commons.logging.Log isFatalEnabled()toisErrorEnabled - Change type
LogtoLogger - Change Gradle or Maven dependency
commons-logging:commons-logging - Replace any Lombok log annotations with target logging framework annotation