pub fn logs_to_str<'a>(
    raw_logs: &'a Vec<Data<Logs>>,
    maybe_filter_by_process: Option<Vec<&'a dyn Component>>
) -> impl Iterator<Item = &'a str> + 'a
Expand description

Takes a vector of raw logs, and returns an iterator over the string representations of said logs. The second argument allows for optional filtering by component. For example, if one only wants to see server logs, the invocation may look like:

logs_to_str(&raw_logs, Some(vec![&server_component_definition]));