A less complicated integration method is the old-school UNIX approach: run a small Java program that performs the task you need and communicates with it via STDIN / STDOUT.
This may not be possible in all cases, but it is definitely for cases such as PDF, SVG, reports and scheduling, which are mainly associated with the creation of separate documents for saving or display.
log4j, slf4j, JUL .., ! , Java , , ++. .