public void logFlow(Flow flow, Logger logger, Level level, String message, Object... args) {
        String finalMsg = tenantEnabled ? FLOW_PREFIX_WITH_TENANT + message : FLOW_PREFIX_NO_TENANT + message;
        Object[] executionArgs = tenantEnabled ?
            new Object[] { flow.getTenantId(), flow.getNamespace(), flow.getId() } :
            new Object[] { flow.getNamespace(), flow.getId() };
        Object[] finalArgs = ArrayUtils.addAll(executionArgs, args);
        logger.atLevel(level).log(finalMsg, finalArgs);
    }
@Test
    void logFlow() {
        var flow = Flow.builder().namespace("namespace").id("flow").build();
        logService.logFlow(flow, log, Level.INFO, "Some log");
        logService.logFlow(flow, log, Level.INFO, "Some log with an {}", "attribute");
        logService.logFlow(flow, log, Level.ERROR, "Some log with an {} and an error", "attribute", new RuntimeException("Test Exception"));
    }