Struct bee_common::logger::LoggerOutputConfigBuilder[][src]

pub struct LoggerOutputConfigBuilder { /* fields omitted */ }

Builder for a logger output configuration.

Implementations

impl LoggerOutputConfigBuilder[src]

pub fn new() -> Self[src]

Creates a new builder for a logger output configuration.

pub fn name<'a>(self, name: impl Into<Cow<'a, str>>) -> Self[src]

Sets the name of a logger output.

pub fn level_filter(self, level: LevelFilter) -> Self[src]

Sets the level of a logger output.

pub fn target_filters(self, target_filters: &[&str]) -> Self[src]

Sets a collection of filters of a logger output. A message is logged only if one of the filters is part of the log’s metadata target.

pub fn finish(self) -> LoggerOutputConfig[src]

Builds a logger output configuration.

Trait Implementations

impl Default for LoggerOutputConfigBuilder[src]

impl<'de> Deserialize<'de> for LoggerOutputConfigBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.