Use LogRecord#setInstant(Instant)

MSAL

Use LogRecord#setInstant(Instant) instead of the deprecated LogRecord#setMillis(long) in Java 9 or higher.

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

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