Optional. Add a logger field to the class if it isn't already present.
String
loggerName
Optional. The name of the logger to use when generating a field.
String
loggingFramework
Optional. The logging framework to use.
String
level
Optional. The logging level to turn System.out print statements into.
Usage
This recipe has no required configuration options and can be activated directly after taking a dependency on org.openrewrite.recipe:rewrite-logging-frameworks:1.8.0 in your build file:
Recipes can also be activated directly from the command line by adding the argument -Drewrite.activeRecipesorg.openrewrite.java.logging.SystemOutToLogging