Replace Log4j 2.x Logger.isEnabled(Level.WARN) with SLF4J's Logger.isWarnEnabled()

MSAL

Replace calls to org.apache.logging.log4j.Logger.isEnabled(Level.WARN) with org.slf4j.Logger.isWarnEnabled().

org.openrewrite.java.logging.slf4j.Log4j2IsEnabledToSlf4jRecipes$LoggerIsEnabledLevelWarnRecipe
mod run . --recipe='org.openrewrite.java.logging.slf4j.Log4j2IsEnabledToSlf4jRecipes$LoggerIsEnabledLevelWarnRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.