pub fn build_patterns(mut self, grok: &mut grok::Grok) -> Self {
        if let Some(pattern_str) = &self.overall_pattern_str {
            self.overall_pattern = Some(
                grok.compile(pattern_str.as_str(), true)
                    .expect("poorly formatted overall_pattern"),
            );
        }
        let mut filter_patterns = Vec::with_capacity(self.filter_patterns_str.len());
        for pattern in &self.filter_patterns_str {
            if let Ok(c) = grok.compile(pattern.as_str(), true) {
                filter_patterns.push(c);
            }
        }
        self.filter_patterns = filter_patterns;
        self
    }
/// Build the patterns that have been supplied in `log_pattern` and `filter_patterns`
Build the patterns that have been supplied in `log_pattern` and `filter_patterns`
Build the patterns that have been supplied in ` log_pattern ` and ` filter_patterns `
pub fn build_patterns(mut self, grok: &mut grok::Grok) -> Self {
        if let Some(pattern_str) = &self.overall_pattern_str {
            self.overall_pattern = Some(
                grok.compile(pattern_str.as_str(), true)
                    .expect("poorly formatted overall_pattern"),
            );
        }
        let mut filter_patterns = Vec::with_capacity(self.filter_patterns_str.len());
        for pattern in &self.filter_patterns_str {
            if let Ok(c) = grok.compile(pattern.as_str(), true) {
                filter_patterns.push(c);
            }
        }
        self.filter_patterns = filter_patterns;
        self
    }
pub fn build_patterns ( mut self , grok : & mut grok :: Grok ) -> Self { if let Some ( pattern_str ) = & self . overall_pattern_str { self . overall_pattern = Some ( grok . compile ( pattern_str . as_str ( ) , true ) . expect ( " " ) , ) ; } let mut filter_patterns = Vec :: with_capacity ( self . filter_patterns_str . len ( ) ) ; for pattern in & self . filter_patterns_str { if let Ok ( c ) = grok . compile ( pattern . as_str ( ) , true ) { filter_patterns . push ( c ) ; } } self . filter_patterns = filter_patterns ; self }
Build the patterns that have been supplied in `log_pattern` and `filter_patterns`
Build the patterns that have been supplied in ` log_pattern ` and ` filter_patterns `
mut self
grok
&mut grok::Grok
mut self
grok
&mut grok::Grok