JBoss Logging Best Practices

MSAL

This recipe applies best practices for logging in JBoss applications. It includes converting argument arrays to varargs for better readability and performance.

org.openrewrite.java.logging.jboss.JBossLoggingBestPractices
mod run . --recipe=org.openrewrite.java.logging.jboss.JBossLoggingBestPractices

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. Replace JBoss Logging Level arguments with the corresponding eponymous level method calls
  2. Replace deprecated JBoss Logging Logger formatted message invocations with the v-version of methods
  3. Unpack Logger method new Object[] {...} into varargs