[][src]Struct async_logger_log::LoggerBuilder

pub struct LoggerBuilder { /* fields omitted */ }

Builder of Logger instance. It can be used to provide custom record formatter, and writer implementation.

Methods

impl LoggerBuilder[src]

pub fn buf_size(self, size: usize) -> Self[src]

Set the size of the pair of underlying buffers. The default is 65536 bytes each.

pub fn formatter(self, formatter: fn(_: &Record) -> String) -> Self[src]

Set custom formatter of log records.

pub fn writer(self, writer: Box<dyn Writer>) -> Self[src]

Set custom writer implementation. The default is FileWriter.

pub fn build(self) -> Result<Logger, Error>[src]

Build the Logger instance.

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, 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.