void (@NotNull List<? extends File> toRemove, @NotNull DataCollectorDebugLogger logger) { for (File file : toRemove) { if (!file.delete()) { logger.warn("Failed deleting event log: " + file.getName()); } if (logger.isTraceEnabled()) { logger.trace("Removed sent log: " + file.getName()); } } }