Migrate JCL to Log4j 2.x API

MSAL

Transforms code written using Apache Commons Logging to use Log4j 2.x API.

org.openrewrite.java.logging.log4j.CommonsLoggingToLog4j
mod run . --recipe=org.openrewrite.java.logging.log4j.CommonsLoggingToLog4j

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 LogManager
  4. Change type Log to Logger
  5. Replace any Lombok log annotations with target logging framework annotation