Migrate JUL to SLF4J

MSAL

Migrates usage of Java Util Logging (JUL) to using SLF4J directly.

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

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. Replace JUL Logger creation with SLF4J LoggerFactory
  2. Replace JUL active Level check with corresponding SLF4J method calls
  3. Replace parameterized JUL level call with corresponding SLF4J method calls
  4. Replace JUL active Level check with corresponding SLF4J method calls
  5. Replace JUL log(Level, Throwable, Supplier<String>) with corresponding SLF4J method calls
  6. Replace JUL log(Level, String, Throwable) with corresponding SLF4J method calls
  7. Replace JUL Level.ALL logging with SLF4J's trace level
  8. Migrate JUL to Log4j 2.x API
  9. Migrate Log4j 2.x to SLF4J 1.x