Use logger instead of System.out print statements

MSAL

Replace System.out print statements with a logger.

org.openrewrite.java.logging.SystemOutToLogging

Optional

addLoggerBoolean

Add a logger field to the class if it isn't already present.

The name of the logger to use when generating a field.

The logging framework to use.

The logging level to turn System.out print statements into.

mod run . --recipe=org.openrewrite.java.logging.SystemOutToLogging

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