package io.quarkus.jaeger.runtime.graal;

import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

import io.jaegertracing.internal.JaegerSpan;
import io.jaegertracing.spi.Reporter;

@Substitute
@TargetClass(className = "io.jaegertracing.internal.reporters.LoggingReporter")
final public class Target_LoggingReporter implements Reporter {

    @Substitute
    public Target_LoggingReporter() {

    }

    @Substitute
    @Override
    public void report(JaegerSpan span) {
        System.err.println("--- not logging: " + span);
    }

    @Substitute
    @Override
    public void close() {

    }

}

@@ -35,16 +35,50 @@
 graal;%0A%0A
+import org.jboss.logging.Logger;%0A%0A
 import c
@@ -404,24 +404,111 @@
 Reporter %7B%0A%0A
+    private static final Logger LOG = Logger.getLogger(Target_LoggingReporter.class);%0A%0A
     @Substit
@@ -641,48 +641,38 @@
     
-System.err.println(%22--- not logging: %22 +
+LOG.infof(%22Span reported: %25s%22,
  spa

Update Jaeger reporter to use logger