Source:
<code>void startEngine(boolean dryRun) throws IOException { @CheckForNull File jarCacheDirectory = null; if (workDir != null) { final WorkDirManager workDirManager = WorkDirManager.getInstance(); if (jarCache != null) { workDirManager.disable(WorkDirManager.DirType.JAR_CACHE_DIR); } if (loggingConfigFilePath != null) { workDirManager.setLoggingConfig(loggingConfigFilePath.toFile()); } final Path path = workDirManager.initializeWorkDir(workDir.toFile(), internalDir, failIfWorkDirIsMissing); jarCacheDirectory = workDirManager.getLocation(WorkDirManager.DirType.JAR_CACHE_DIR); workDirManager.setupLogging(path, agentLog); } else if (jarCache == null) { LOGGER.log(Level.WARNING, "No Working Directory. Using the legacy JAR Cache location: {0}", JarCache.DEFAULT_NOWS_JAR_CACHE_LOCATION); jarCacheDirectory = JarCache.DEFAULT_NOWS_JAR_CACHE_LOCATION; } if (jarCache == null){ if (jarCacheDirectory == null) { throw new IOException("Cannot find the JAR Cache location"); } LOGGER.log(Level.FINE, "Using standard File System JAR Cache. Root Directory is {0}", jarCacheDirectory); try { jarCache = new FileSystemJarCache(jarCacheDirectory, true); } catch (IllegalArgumentException ex) { throw new IOException("Failed to initialize FileSystem JAR Cache in " + jarCacheDirectory, ex); } } else { LOGGER.log(Level.INFO, "Using custom JAR Cache: {0}", jarCache); } <START> LOGGER.log(Level.INFO, "Using agent version: {0}", Launcher.VERSION); <END> if (!dryRun) { this.start(); } }</code><technical_language>do earlier, preferably beginning of method. Work Dir Jar Cache initialization fatal failures, nice show version info that. workDirManager.setupLogging() impact behavior of LOGGER, fine print message it. In case message initial java.util.logging appenders CLI</technical_language>

Target:
void startEngine(boolean dryRun) throws IOException { LOGGER.log(Level.INFO, "Using Remoting version: {0}", Launcher.VERSION); @CheckForNull File jarCacheDirectory = null; if (workDir != null) { final WorkDirManager workDirManager = WorkDirManager.getInstance(); if (jarCache != null) { workDirManager.disable(WorkDirManager.DirType.JAR_CACHE_DIR); } if (loggingConfigFilePath != null) { workDirManager.setLoggingConfig(loggingConfigFilePath.toFile()); } final Path path = workDirManager.initializeWorkDir(workDir.toFile(), internalDir, failIfWorkDirIsMissing); jarCacheDirectory = workDirManager.getLocation(WorkDirManager.DirType.JAR_CACHE_DIR); workDirManager.setupLogging(path, agentLog); } else if (jarCache == null) { LOGGER.log(Level.WARNING, "No Working Directory. Using the legacy JAR Cache location: {0}", JarCache.DEFAULT_NOWS_JAR_CACHE_LOCATION); jarCacheDirectory = JarCache.DEFAULT_NOWS_JAR_CACHE_LOCATION; } if (jarCache == null){ if (jarCacheDirectory == null) { throw new IOException("Cannot find the JAR Cache location"); } LOGGER.log(Level.FINE, "Using standard File System JAR Cache. Root Directory is {0}", jarCacheDirectory); try { jarCache = new FileSystemJarCache(jarCacheDirectory, true); } catch (IllegalArgumentException ex) { throw new IOException("Failed to initialize FileSystem JAR Cache in " + jarCacheDirectory, ex); } } else { LOGGER.log(Level.INFO, "Using custom JAR Cache: {0}", jarCache); } if (!dryRun) { this.start(); } }