pub fn lookup_tags<T>(
        &mut self,
        global_options: &GlobalOptions,
        tags: &[Tag],
        children_list: &mut Vec<ChildData>,
    ) where
        Self: Lookup<T>,
    {
        for tag in tags.iter().filter(|t| t.process) {
            debug!("searching for tag: {}", &tag.name);

            // now we can search for the pattern and save the child handle if a script was called
            match self.lookup::<T>(tag, global_options) {
                // script might be started, giving back a `Child` structure with process features like pid etc
                Ok(mut children) => {
                    // merge list of children
                    if !children.is_empty() {
                        children_list.append(&mut children);
                    }
                }

                // otherwise, an error when opening (most likely) the file and then report an error on counters
                Err(e) => {
                    error!(
                        "error: {} when searching logfile: {} for tag: {}",
                        e,
                        self.id.canon_path.display(),
                        &tag.name
                    );

                    // set error for this logfile
                    self.set_error(e, &tag.name);
                }
            }
        }
    }
// Search for each tag in the search
Search for each tag in the search
Search for each tag in the search
pub fn lookup_tags<T>(
        &mut self,
        global_options: &GlobalOptions,
        tags: &[Tag],
        children_list: &mut Vec<ChildData>,
    ) where
        Self: Lookup<T>,
    {
        for tag in tags.iter().filter(|t| t.process) {
            debug!("searching for tag: {}", &tag.name);
            // now we can search for the pattern and save the child handle if a script was called
            match self.lookup::<T>(tag, global_options) {
                // script might be started, giving back a `Child` structure with process features like pid etc
                Ok(mut children) => {
                    // merge list of children
                    if !children.is_empty() {
                        children_list.append(&mut children);
                    }
                }
                // otherwise, an error when opening (most likely) the file and then report an error on counters
                Err(e) => {
                    error!(
                        "error: {} when searching logfile: {} for tag: {}",
                        e,
                        self.id.canon_path.display(),
                        &tag.name
                    );
                    // set error for this logfile
                    self.set_error(e, &tag.name);
                }
            }
        }
    }
pub fn lookup_tags < T > ( & mut self , global_options : & GlobalOptions , tags : & [ Tag ] , children_list : & mut Vec < ChildData > , ) where Self : Lookup < T > , { for tag in tags . iter ( ) . filter ( | t | t . process ) { debug ! ( " " tag name ) ; // now we can search for the pattern and save the child handle if a script was called match self . lookup :: < T > ( tag , global_options ) { // script might be started, giving back a `Child` structure with process features like pid etc Ok ( mut children ) => { // merge list of children if ! children . is_empty ( ) { children_list . append ( & mut children ) ; } } // otherwise, an error when opening (most likely) the file and then report an error on counters Err ( e ) => { error ! ( " " e self id canon_path display ( ) tag name ) ; // set error for this logfile self . set_error ( e , & tag . name ) ; } } } }
Search for each tag in the search
Search for each tag in the search
&mut self
global_options
&GlobalOptions
tags
&[Tag]
children_list
&mut Vec<ChildData>
&mut self
global_options
&GlobalOptions
tags
&[Tag]
children_list
&mut Vec<ChildData>