public void SetLog(string filePath, LogLevel level) { lock (_lock) { if (_fileWriter.FileExists(filePath)) { _fileWriter.DeleteFile(filePath); } _filePath = filePath; _enabledLevel = level; } }
private void CleanGenereatedFiles() { _logger.Info($"Cleaning generated files for {SlnxName}"); foreach (var pattern in new[] { CsProject.ImportSlnxConfigName }) { foreach (string f in Directory.EnumerateFiles(ProjectsSearchPath, pattern, new EnumerationOptions() { RecurseSubdirectories = true })) { _fileWriter.DeleteFile(f); } } }