pub fn tail_logs_glob(
pattern: &str,
n: usize,
level: Option<LogLevel>,
) -> Result<Vec<String>, String>Expand description
Tail the last n records across every file matching a glob
pattern (e.g. /var/log/**/*.log), newest last, optionally keeping
only records at or above level. Matched files are read in sorted
path order and their records concatenated before the final n are
taken; unparseable lines are skipped.
ยงErrors
Returns an error string if the glob pattern is invalid, or if a matched path cannot be read (e.g. it resolves to a directory).