[][src]Struct libra_logger::LibraLoggerBuilder

pub struct LibraLoggerBuilder { /* fields omitted */ }

Implementations

impl LibraLoggerBuilder[src]

pub fn new() -> Self[src]

pub fn address(&mut self, address: String) -> &mut Self[src]

pub fn read_env(&mut self) -> &mut Self[src]

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

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

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

pub fn printer(
    &mut self,
    printer: Box<dyn Writer + Send + Sync + 'static>
) -> &mut Self
[src]

pub fn is_async(&mut self, is_async: bool) -> &mut Self[src]

pub fn init(&mut self)[src]

pub fn build(&mut self) -> Arc<LibraLogger>[src]

Auto Trait Implementations

impl !RefUnwindSafe for LibraLoggerBuilder

impl Send for LibraLoggerBuilder

impl Sync for LibraLoggerBuilder

impl Unpin for LibraLoggerBuilder

impl !UnwindSafe for LibraLoggerBuilder

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.