[][src]Struct sloggers::terminal::TerminalLoggerBuilder

pub struct TerminalLoggerBuilder { /* fields omitted */ }

A logger builder which build loggers that output log records to the terminal.

The resulting logger will work asynchronously (the default channel size is 1024).

Implementations

impl TerminalLoggerBuilder[src]

pub fn new() -> Self[src]

Makes a new TerminalLoggerBuilder instance.

pub fn format(&mut self, format: Format) -> &mut Self[src]

Sets the format of log records.

pub fn source_location(&mut self, source_location: SourceLocation) -> &mut Self[src]

Sets the source code location type this logger will use.

pub fn overflow_strategy(
    &mut self,
    overflow_strategy: OverflowStrategy
) -> &mut Self
[src]

Sets the overflow strategy for the logger.

pub fn timezone(&mut self, timezone: TimeZone) -> &mut Self[src]

Sets the time zone which this logger will use.

pub fn destination(&mut self, destination: Destination) -> &mut Self[src]

Sets the destination to which log records will be outputted.

pub fn level(&mut self, severity: Severity) -> &mut Self[src]

Sets the log level of this logger.

pub fn channel_size(&mut self, channel_size: usize) -> &mut Self[src]

Sets the size of the asynchronous channel of this logger.

pub fn kvfilter(&mut self, parameters: KVFilterParameters) -> &mut Self[src]

Sets KVFilter.

Trait Implementations

impl Build for TerminalLoggerBuilder[src]

impl Debug for TerminalLoggerBuilder[src]

impl Default for TerminalLoggerBuilder[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> From<T> for T[src]

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[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.