pub struct LogFormat {
pub name: String,
pub regex: Regex,
pub field_names: Vec<String>,
pub display: Option<DisplayTemplate>,
}Expand description
A named log format: a regex with named capture groups identifying the fields of one log line. Used by filtering to look up field values by name.
Fields§
§name: String§regex: Regex§field_names: Vec<String>Capture group names declared in the regex, in declaration order.
Used by --list-formats to show users what fields are available.
display: Option<DisplayTemplate>Optional default display template (display key in formats.toml).
When set and no CLI override is given, the viewer / batch output
renders each parsed line through this template instead of the raw line.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogFormat
impl RefUnwindSafe for LogFormat
impl Send for LogFormat
impl Sync for LogFormat
impl Unpin for LogFormat
impl UnsafeUnpin for LogFormat
impl UnwindSafe for LogFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more