Catch block log level

MSAL

Sometimes exceptions are caught and logged at the wrong log level. This will set the log level of logging statements within a catch block not containing an exception to "warn", and the log level of logging statements containing an exception to "error". This supports SLF4J, Log4J1, Log4j2, and Logback.

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

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