pub trait ProcessingStore {
    fn add_format(&self, id: String, format: String);
    fn get_format(&self, id: &str) -> Option<String>;
    fn get_formats(&self) -> Vec<Format>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
; fn add_filter(
        &self,
        id: String,
        filter: LogLine,
        action: FilterAction,
        enabled: bool
    ); fn get_filters(&self) -> Vec<(bool, Filter)>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
; fn toggle_filter(&self, id: &str); }
Expand description

Store holding all the processing information. Format and filter definitions

Required Methods

Add a new format to the store

  • id: alias
  • format: regex formatting

Get the format data for the requested format alias

Get a list of formats

Add a new filter to the store

  • id: alias
  • filter: log line regex definitions

Get a list of filters together with their enabled state

Switch the enabled state for the given filter

Implementors