[][src]Struct pipe_logger_lib::PipeLoggerBuilder

pub struct PipeLoggerBuilder<P: AsRef<Path>> { /* fields omitted */ }

To build a PipeLogger instance.

Methods

impl<P: AsRef<Path>> PipeLoggerBuilder<P>[src]

pub fn new(log_path: P) -> PipeLoggerBuilder<P>[src]

Create a new PipeLoggerBuilder.

pub fn rotate(&self) -> &Option<RotateMethod>[src]

pub fn count(&self) -> &Option<usize>[src]

pub fn log_path(&self) -> &P[src]

pub fn compress(&self) -> bool[src]

Whether to compress the rotated log files through xz.

pub fn tee(&self) -> &Option<Tee>[src]

pub fn set_rotate(&mut self, rotate: Option<RotateMethod>) -> &mut Self[src]

pub fn set_count(&mut self, count: Option<usize>) -> &mut Self[src]

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

Whether to compress the rotated log files through xz.

pub fn set_tee(&mut self, tee: Option<Tee>) -> &mut Self[src]

pub fn build(self) -> Result<PipeLogger, PipeLoggerBuilderError>[src]

Build a new PipeLogger.

Trait Implementations

impl<P: Debug + AsRef<Path>> Debug for PipeLoggerBuilder<P>[src]

Auto Trait Implementations

impl<P> Send for PipeLoggerBuilder<P> where
    P: Send

impl<P> Unpin for PipeLoggerBuilder<P> where
    P: Unpin

impl<P> Sync for PipeLoggerBuilder<P> where
    P: Sync

impl<P> UnwindSafe for PipeLoggerBuilder<P> where
    P: UnwindSafe

impl<P> RefUnwindSafe for PipeLoggerBuilder<P> where
    P: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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