Use modernized java.util.logging APIs

MSAL

Certain Java logging APIs have become deprecated and their usages changed, necessitating usage changes.

org.openrewrite.java.migrate.logging.JavaLoggingAPIs
mod run . --recipe=org.openrewrite.java.migrate.logging.JavaLoggingAPIs

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

Recipe list

It runs these recipes, in this order.

  1. Use ManagementFactory#getPlatformMXBean(PlatformLoggingMXBean.class)
  2. Use Logger#getGlobal()
  3. Use Logger#logrb(.., ResourceBundle bundleName, ..)
  4. Use LogRecord#setInstant(Instant)
  5. Use java.lang.management.PlatformLoggingMXBean