Using the follow does most of the conversion work, requires some manual fixup for certain log4j arguments. But *import static java.lang.System.Logger.Level.*;* doesn't get added. Any suggestions for a way to add that as part of the refactoring?

-ernie

   <?
   import static java.lang.System.Logger.Level.*;
   ?>

        org.apache.logging.log4j.Logger
   =>  java.lang.System.Logger
   ;;

   "error":
        $logger.error($args$)
   ::  $logger instanceof org.apache.logging.log4j.Logger
   =>  $logger.log(ERROR, $args$)
   ;;

   ...

Reply via email to