pub struct LogService { /* private fields */ }

Implementations

Instantiates the service and starts the consumer thread.

The consumer thread continuously listens to lines from log sources and applies a chain of operations

  • apply format
  • apply filters
  • apply search

Trait Implementations

Add a new log source to the analysis

Add a new format to the list of available formats

Start a new search

Add a new filter to the list of available filters

Get log lines between the range [from, to]

Get search lines between the range [from, to]

Get a list of log lines of elements size centered on the line element or the closest Returns (elements, offset, index) Read more

Get a list of log lines of elements size centered on the line element or the closest Returns (elements, offset, index) Read more

Get the current managed logs Returns a vector of (enabled, log_path, Option) Read more

Get all the available formats

Get all the available filters together with their enabled state

Get how many lines are in the raw logs

Get how many lines are in the filtered log

Get how many lines are in the search log

Enable or disable the given source

Enable or disable the given filter

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.