Migrate JUL to SLF4J
MSALMigrates usage of Java Util Logging (JUL) to using SLF4J directly.
org. openrewrite. java. logging. slf4j. JulToSlf4jmod run . --recipe= org. openrewrite. java. logging. slf4j. JulToSlf4jInstall 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.
- Replace JUL Logger creation with SLF4J LoggerFactory
- Replace JUL active Level check with corresponding SLF4J method calls
- Replace parameterized JUL level call with corresponding SLF4J method calls
- Replace JUL active Level check with corresponding SLF4J method calls
- Replace JUL
log(Level, Throwable, Supplier<String>)with corresponding SLF4J method calls - Replace JUL
log(Level, String, Throwable)with corresponding SLF4J method calls - Replace JUL
Level.ALLlogging with SLF4J's trace level - Migrate JUL to Log4j 2.x API
- Migrate Log4j 2.x to SLF4J 1.x