private void readLogs(AuthConfig authConfig, String appName, String serviceName, 
	        String podName, String namespace, Integer readLines) throws HyscaleException {
		String logFile = deployerConfig.getServiceLogDir(appName, serviceName);
        try (InputStream is = deployer.logs(authConfig, serviceName, namespace, 
		        podName, serviceName, readLines, false)) {
			logProcessor.writeLogFile(is, logFile);
			logProcessor.readLogFile(new File(logFile), System.out);
		} catch (IOException e) {
			logger.error("Failed to get deploy logs {}", serviceName, e);
			throw new HyscaleException(e, DeployerErrorCodes.FAILED_TO_GET_LOGS);
		} catch (HyscaleException ex) {
			throw ex;
		}
	}
Gets logs from cluster and write them to log file
Reads log file from directory to System out
Ensures latest logs are present in the directory
@param authConfig
@param namespace
@param appName
@param serviceName
@param podName
@param readLines
@throws HyscaleException
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/util/DeployerLogUtil.java