Refaster template FormattedArgumentsToVMethod.DebugToVDebugWithThrowable

MSAL

Recipe created for the following Refaster template:

public static class DebugToVDebugWithThrowable {
    
    @BeforeTemplate
    void before(Logger logger, String message, Object[] args, Throwable t) {
        logger.debug((Object)message, args, t);
    }
    
    @AfterTemplate
    void after(Logger logger, String message, Object[] args, Throwable t) {
        logger.debugv(message, args, t);
    }
}

.

org.openrewrite.java.logging.jboss.FormattedArgumentsToVMethodRecipes$DebugToVDebugWithThrowableRecipe
mod run . --recipe='org.openrewrite.java.logging.jboss.FormattedArgumentsToVMethodRecipes$DebugToVDebugWithThrowableRecipe'

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