Migrate Log4j 2.x Appender to logback-classic equivalents

MSAL

Migrates custom Log4j 2.x Appender components to logback-classic. This recipe operates on the following assumptions: 1.) The contents of the append() method remains unchanged. 2.) The requiresLayout() method is not used in logback and can be removed. 3.) In logback, the stop() method is the equivalent of log4j's close() method. For more details, see this page from logback: Migration from log4j.

org.openrewrite.java.logging.logback.Log4jAppenderToLogback
mod run . --recipe=org.openrewrite.java.logging.logback.Log4jAppenderToLogback

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