Struct bee_common::logger::LoggerConfigBuilder[][src]

pub struct LoggerConfigBuilder { /* fields omitted */ }

Builder for a logger configuration.

Implementations

impl LoggerConfigBuilder[src]

pub fn color_enabled(self, color: bool) -> Self[src]

Sets the color flag of a logger.

pub fn with_target_width(self, width: usize) -> Self[src]

Sets the target width.

pub fn with_level_width(self, width: usize) -> Self[src]

Sets the target width.

pub fn with_output(self, output: LoggerOutputConfigBuilder) -> Self[src]

Adds an output builder to the logger builder.

pub fn level<'a>(&mut self, name: impl Into<Cow<'a, str>>, level: LevelFilter)[src]

Sets the level of an output of a logger.

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

Builds a logger configuration.

Trait Implementations

impl Default for LoggerConfigBuilder[src]

impl<'de> Deserialize<'de> for LoggerConfigBuilder[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.