Skip to main content

find_latest_log_in_dirs

Function find_latest_log_in_dirs 

Source
pub fn find_latest_log_in_dirs(
    log_dirs: &[PathBuf],
    pattern: &str,
) -> Option<PathBuf>
Expand description

Finds the most recent log file across the provided directories that matches the pattern. If any .json file is available, prefer the most recent JSON result.