Struct pipe_logger_lib::PipeLoggerBuilder [−][src]
To build a PipeLogger instance.
Methods
impl<P: AsRef<Path>> PipeLoggerBuilder<P>
[src]
impl<P: AsRef<Path>> PipeLoggerBuilder<P>
pub fn new(log_path: P) -> PipeLoggerBuilder<P>
[src]
pub fn new(log_path: P) -> PipeLoggerBuilder<P>
Create a new PipeLoggerBuilder.
pub fn rotate(&self) -> &Option<RotateMethod>
[src]
pub fn rotate(&self) -> &Option<RotateMethod>
pub fn count(&self) -> &Option<usize>
[src]
pub fn count(&self) -> &Option<usize>
pub fn log_path(&self) -> &P
[src]
pub fn log_path(&self) -> &P
pub fn compress(&self) -> bool
[src]
pub fn compress(&self) -> bool
Whether to compress the rotated log files through xz.
pub fn tee(&self) -> &Option<Tee>
[src]
pub fn tee(&self) -> &Option<Tee>
pub fn set_rotate(&mut self, rotate: Option<RotateMethod>) -> &mut Self
[src]
pub fn set_rotate(&mut self, rotate: Option<RotateMethod>) -> &mut Self
pub fn set_count(&mut self, count: Option<usize>) -> &mut Self
[src]
pub fn set_count(&mut self, count: Option<usize>) -> &mut Self
pub fn set_compress(&mut self, compress: bool) -> &mut Self
[src]
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
[src]
pub fn set_tee(&mut self, tee: Option<Tee>) -> &mut Self
pub fn build(self) -> Result<PipeLogger, PipeLoggerBuilderError>
[src]
pub fn build(self) -> Result<PipeLogger, PipeLoggerBuilderError>
Build a new PipeLogger.
Trait Implementations
Auto Trait Implementations
impl<P> Send for PipeLoggerBuilder<P> where
P: Send,
impl<P> Send for PipeLoggerBuilder<P> where
P: Send,
impl<P> Sync for PipeLoggerBuilder<P> where
P: Sync,
impl<P> Sync for PipeLoggerBuilder<P> where
P: Sync,