Find e.printStackTrace(out) calls
ProprietaryWriting the stack trace to a PrintStream / PrintWriter is the Java idiom for re-routing it manually. With a structured logger you don't need to — log.error("context", e) already carries the throwable to the configured sink. Review whether the explicit redirection still serves a purpose.
org. openrewrite. kotlin. logging. FindThrowablePrintStackTraceWithStream$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. logging. FindThrowablePrintStackTraceWithStream$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.