Traceable Events

You can hook into J/Foundation's logging mechanism to log messages from your custom Java UDR. You can use the SLF4J logging facade to log messages from your Java code. An example of using the SLF4J logger in a UDR is below:
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LoggerExample {
  private static final Logger logger = LoggerFactory.getLogger(LoggerExample.class);

  public static void testLogging() {
    logger.info("Hello World");
    try {
      //some work
    } catch(Exception e) {
     logger.error("Something went wrong", e);
    }
  }
}

For more information about the SLF4J API at https://www.slf4j.org/manual.html.