pub fn find_record_by_msg<'a>(msg: &str, records: &'a [LogEntry]) -> Option<&'a LogEntry> {
    for rec in records {
        if &rec.msg == &msg {
            return Some(rec);
        }
    }
    None
}
///Given a log key (such as ts) will return the first log record that matches the log_value passed.
Given a log key (such as ts) will return the first log record that matches the log_value passed.
Given a log key ( such as ts ) will return the first log record that matches the log_value passed .
pub fn find_record_by_msg<'a>(msg: &str, records: &'a [LogEntry]) -> Option<&'a LogEntry> {
    for rec in records {
        if &rec.msg == &msg {
            return Some(rec);
        }
    }
    None
}
pub fn find_record_by_msg < ' a > ( msg : & str , records : & ' a [ LogEntry ] ) -> Option < & ' a LogEntry > { for rec in records { if & rec . msg == & msg { return Some ( rec ) ; } } None }
Given a log key (such as ts) will return the first log record that matches the log_value passed.
Given a log key ( such as ts ) will return the first log record that matches the log_value passed .
msg
&str
records
&'a [LogEntry]