private void writeDeployLogs(WorkflowContext context, DeploymentContext deploymentContext) {
        String serviceName = deploymentContext.getServiceName();
        try (InputStream is = deployer.logs(deploymentContext.getAuthConfig(), serviceName,
                deploymentContext.getNamespace(), null, serviceName, deploymentContext.getReadLines(), deploymentContext.isTailLogs())) {
            String deploylogFile = deployerConfig.getDeployLogDir(deploymentContext.getAppName(),
                    serviceName);
            logProcessor.writeLogFile(is, deploylogFile);
            context.addAttribute(WorkflowConstants.DEPLOY_LOGS,
                    deployerConfig.getDeployLogDir(deploymentContext.getAppName(), deploymentContext.getServiceName()));
        } catch (IOException e) {
            logger.error("Failed to get deploy logs {}", deploymentContext.getServiceName(), e);
        } catch (HyscaleException ex) {
            logger.error("Failed to get deploy logs {}", deploymentContext.getServiceName(), ex);
        }
    }
Write deployment logs to file for later access

@param context
@param deploymentContext
workflow-controller/controller-service/src/main/java/io/hyscale/controller/invoker/DeployComponentInvoker.java