Struct pipe_logger_lib::PipeLoggerBuilder
source · pub struct PipeLoggerBuilder<P: AsRef<Path>> { /* private fields */ }
Expand description
To build a PipeLogger instance.
Implementations§
source§impl<P: AsRef<Path>> PipeLoggerBuilder<P>
impl<P: AsRef<Path>> PipeLoggerBuilder<P>
sourcepub fn new(log_path: P) -> PipeLoggerBuilder<P>
pub fn new(log_path: P) -> PipeLoggerBuilder<P>
Create a new PipeLoggerBuilder.
pub fn rotate(&self) -> &Option<RotateMethod>
pub fn count(&self) -> &Option<usize>
pub fn log_path(&self) -> &P
pub fn tee(&self) -> &Option<Tee>
pub fn set_rotate(&mut self, rotate: Option<RotateMethod>) -> &mut Self
pub fn set_count(&mut self, count: Option<usize>) -> &mut Self
sourcepub fn set_compress(&mut self, compress: bool) -> &mut Self
pub fn set_compress(&mut self, compress: bool) -> &mut Self
Whether to compress the rotated log files through xz.
pub fn set_tee(&mut self, tee: Option<Tee>) -> &mut Self
sourcepub fn build(self) -> Result<PipeLogger, PipeLoggerBuilderError>
pub fn build(self) -> Result<PipeLogger, PipeLoggerBuilderError>
Build a new PipeLogger.
Trait Implementations§
Auto Trait Implementations§
impl<P> RefUnwindSafe for PipeLoggerBuilder<P>where P: RefUnwindSafe,
impl<P> Send for PipeLoggerBuilder<P>where P: Send,
impl<P> Sync for PipeLoggerBuilder<P>where P: Sync,
impl<P> Unpin for PipeLoggerBuilder<P>where P: Unpin,
impl<P> UnwindSafe for PipeLoggerBuilder<P>where P: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more