Use @Log4j2 instead of explicit fields
MSALPrefer the Lombok annotation @Log4j2 over explicitly written out org.apache.logging.log4j.Logger fields.
org. openrewrite. java. migrate. lombok. log. UseLog4j2Optional
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. UseLog4j2Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.