+ ProcessExecutor exec = new ProcessExecutor().command(actualArgs).redirectOutput(new Slf4jInfoOutputStream(LOGGER) {
+
+ @Override
+ protected void processLine(String line) {
+ // Convert to UTF-8 string
+ String utf8Line = new String(line.getBytes(), StandardCharsets.UTF_8);
+ log.info(utf8Line);
+ }
+ }).destroyOnExit();
+