Use @Log4j2 instead of explicit fields

MSAL

Prefer the Lombok annotation @Log4j2 over explicitly written out org.apache.logging.log4j.Logger fields.

org.openrewrite.java.migrate.lombok.log.UseLog4j2

Optional

Name of the log field to replace. If not specified, the field name is not checked and any field that satisfies the other checks is converted.

mod run . --recipe=org.openrewrite.java.migrate.lombok.log.UseLog4j2

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