gradlew rewriteRun. After running the migration you can inspect the results with
git diff(or equivalent), manually fix anything that wasn't able to be migrated automatically, and commit the results.
SLF4J Migrator, the goal of the
Log4jToSlf4jrecipe is to significantly reduce the amount of work involved in migrating
SLF4J. Because OpenRewrite works by leveraging type-attributed Abstract Syntax Trees (AST) representing your source code, the
Log4jToSlf4jrecipe can overcome several limitations discussed in the
FATALis not supported in
FATALlevel log statements are migrated to
ERRORlog level exceptions are migrated to their
log4jproperties and configuration files are not migrated.
Log4jconfiguration customizations which do not have an
SLF4Jequivalent cannot be migrated.