pub fn collect_matching_logs( log_dirs: &[PathBuf], patterns: &[&str], ) -> Vec<PathBuf>
Collects log files that contain any of the provided patterns, sorted by modification time.