@Test public void setStackTraceStoragePath_shouldNotCreateAnyDirectories_whenBuildIsNotCalled() throws Exception { Path parent = tempFiles.createTempDirectoryThatDoesNotExist(); Path child = tempFiles.register(parent.resolve("child")); assertFalse(Files.exists(parent)); assertFalse(Files.exists(child)); factory.setStackTraceStoragePath(child); assertFalse(Files.exists(parent)); assertFalse(Files.exists(child)); }
public OpsLoggerFactory setStackTraceStoragePath(Path directory) { validateParametersForSetStackTraceStoragePath(directory); clearCachedInstance(); setStoreStackTracesInFilesystem(true); stackTraceStoragePath = Optional.of(directory); return this; }
OpsLoggerFactory { public OpsLoggerFactory setStackTraceStoragePath(Path directory) { validateParametersForSetStackTraceStoragePath(directory); clearCachedInstance(); setStoreStackTracesInFilesystem(true); stackTraceStoragePath = Optional.of(directory); return this; } }
OpsLoggerFactory { public OpsLoggerFactory setStackTraceStoragePath(Path directory) { validateParametersForSetStackTraceStoragePath(directory); clearCachedInstance(); setStoreStackTracesInFilesystem(true); stackTraceStoragePath = Optional.of(directory); return this; }  }
OpsLoggerFactory { public OpsLoggerFactory setStackTraceStoragePath(Path directory) { validateParametersForSetStackTraceStoragePath(directory); clearCachedInstance(); setStoreStackTracesInFilesystem(true); stackTraceStoragePath = Optional.of(directory); return this; }  OpsLoggerFactory setDestination(PrintStream printStream); OpsLoggerFactory setPath(Path path); OpsLoggerFactory setStoreStackTracesInFilesystem(boolean store); OpsLoggerFactory setStackTraceStoragePath(Path directory); OpsLoggerFactory setErrorHandler(Consumer<Throwable> handler); @Deprecated OpsLoggerFactory setCorrelationIdSupplier(Supplier<Map<String,String>> supplier); OpsLoggerFactory setGlobalDiagnosticContextSupplier(DiagnosticContextSupplier supplier); OpsLoggerFactory setAsync(boolean async); @SuppressWarnings("unchecked") OpsLogger<T> build(); }
OpsLoggerFactory { public OpsLoggerFactory setStackTraceStoragePath(Path directory) { validateParametersForSetStackTraceStoragePath(directory); clearCachedInstance(); setStoreStackTracesInFilesystem(true); stackTraceStoragePath = Optional.of(directory); return this; }  OpsLoggerFactory setDestination(PrintStream printStream); OpsLoggerFactory setPath(Path path); OpsLoggerFactory setStoreStackTracesInFilesystem(boolean store); OpsLoggerFactory setStackTraceStoragePath(Path directory); OpsLoggerFactory setErrorHandler(Consumer<Throwable> handler); @Deprecated OpsLoggerFactory setCorrelationIdSupplier(Supplier<Map<String,String>> supplier); OpsLoggerFactory setGlobalDiagnosticContextSupplier(DiagnosticContextSupplier supplier); OpsLoggerFactory setAsync(boolean async); @SuppressWarnings("unchecked") OpsLogger<T> build();  }