Use java.lang.management.PlatformLoggingMXBean

MSAL

Use java.lang.management.PlatformLoggingMXBean instead of the deprecated java.util.logging.LoggingMXBean in Java 9 or higher.

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

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. Change type LoggingMXBean to PlatformLoggingMXBean