[−][src]Struct pipe_logger_lib::PipeLoggerBuilder
To build a PipeLogger instance.
Implementations
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
Auto Trait Implementations
impl<P> RefUnwindSafe for PipeLoggerBuilder<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for PipeLoggerBuilder<P> where
P: Send,
P: Send,
impl<P> Sync for PipeLoggerBuilder<P> where
P: Sync,
P: Sync,
impl<P> Unpin for PipeLoggerBuilder<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for PipeLoggerBuilder<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,