Replace any Lombok log annotations with target logging framework annotation

MSAL

Replace Lombok annotations such as @CommonsLog and @Log4j with the target logging framework annotation, or @Sl4fj if not provided.

org.openrewrite.java.logging.ChangeLombokLogAnnotation

Optional

The logging framework to use.

mod run . --recipe=org.openrewrite.java.logging.ChangeLombokLogAnnotation

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. Change type Log to Slf4j
  2. Change type CommonsLog to Slf4j
  3. Change type Flogger to Slf4j
  4. Change type JBossLog to Slf4j
  5. Change type Log4j to Slf4j
  6. Change type Log4j2 to Slf4j
  7. Change type XSlf4j to Slf4j
  8. Change type CustomLog to Slf4j