Struct grok::Grok
[−]
[src]
pub struct Grok { /* fields omitted */ }
The basic structure to manage patterns, entry point for common usage.
Methods
impl Grok
[src]
fn empty() -> Self
[src]
Creates a new Grok
instance with no patterns.
fn with_patterns() -> Self
[src]
Creates a new Grok
instance and loads all the default patterns.
fn insert_definition<S: Into<String>>(&mut self, name: S, pattern: S)
[src]
Inserts a custom pattern.
fn compile(
&mut self,
pattern: &str,
with_alias_only: bool
) -> Result<Pattern, Error>
[src]
&mut self,
pattern: &str,
with_alias_only: bool
) -> Result<Pattern, Error>
Compiles the given pattern, making it ready for matching.