Class Log4jAppenderToLogback
- java.lang.Object
-
- org.openrewrite.Recipe
-
- org.openrewrite.java.logging.logback.Log4jAppenderToLogback
-
public class Log4jAppenderToLogback extends org.openrewrite.RecipeLog4jAppenderToLogback.Log4jAppenderToLogbackVisitoroperates on the following assumptions:- The contents of the append() method remains unchanged.
- The requiresLayout() method is not used in logback and can be removed.
- In logback, the stop() method is the equivalent of log4j's close() method.
- See Also:
- Migration from log4j
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLog4jAppenderToLogback.Log4jAppenderToLogbackVisitor
-
Constructor Summary
Constructors Constructor Description Log4jAppenderToLogback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()java.lang.StringgetDisplayName()protected org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>getSingleSourceApplicableTest()protected org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>getVisitor()-
Methods inherited from class org.openrewrite.Recipe
causesAnotherCycle, doNext, equals, getApplicableTest, getDescriptor, getEstimatedEffortPerOccurrence, getJacksonPolymorphicTypeTag, getLanguages, getName, getRecipeList, getTags, hashCode, run, run, run, run, validate, validate, validateAll, validateAll, visit
-
-
-
-
Method Detail
-
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayNamein classorg.openrewrite.Recipe
-
getDescription
public java.lang.String getDescription()
- Overrides:
getDescriptionin classorg.openrewrite.Recipe
-
getSingleSourceApplicableTest
protected org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getSingleSourceApplicableTest()
- Overrides:
getSingleSourceApplicableTestin classorg.openrewrite.Recipe
-
getVisitor
protected org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor()
- Overrides:
getVisitorin classorg.openrewrite.Recipe
-
-