/// <summary> /// Delete selected log files. /// </summary> /// <param name="selectedFiles"></param> public static void DeleteSelectedLogFiles(List <object> selectedFiles) { FileInfo[] filesList = LoggerUtilities.GetSelectedLogFiles(selectedFiles); LoggerUtilities.DeleteLogFiles(filesList); }
/// <summary> /// Delete log files, older than specified date. /// </summary> /// <param name="olderThanDate"></param> public static void DeleteOlderLogFiles(DateTime olderThanDate) { FileInfo[] filesList = LoggerUtilities.GetOlderLogFiles(olderThanDate); LoggerUtilities.DeleteLogFiles(filesList); }
// Delete logs methods #region DeleteAllLogFiles /// <summary> /// Delete all log files. /// </summary> public static void DeleteAllLogFiles() { FileInfo[] filesList = LoggerUtilities.GetAllLogFiles(); LoggerUtilities.DeleteLogFiles(filesList); }