pub struct LevelSplitWriter<L, H> { /* private fields */ }Expand description
Composes two writers — INFO+ goes through low, WARN+ through
high. The conventional shape for cargo binaries.
Implementations§
Source§impl<L: MakeWriter, H: MakeWriter> LevelSplitWriter<L, H>
impl<L: MakeWriter, H: MakeWriter> LevelSplitWriter<L, H>
Trait Implementations§
Source§impl<L: Clone, H: Clone> Clone for LevelSplitWriter<L, H>
impl<L: Clone, H: Clone> Clone for LevelSplitWriter<L, H>
Source§fn clone(&self) -> LevelSplitWriter<L, H>
fn clone(&self) -> LevelSplitWriter<L, H>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<L: MakeWriter, H: MakeWriter> MakeWriter for LevelSplitWriter<L, H>
impl<L: MakeWriter, H: MakeWriter> MakeWriter for LevelSplitWriter<L, H>
Source§type Writer = ErasedWriter
type Writer = ErasedWriter
The writer type produced by
Self::make_writer; usually
Stdout, Stderr, or a guard around a file handle.Source§fn make_writer(&self) -> ErasedWriter ⓘ
fn make_writer(&self) -> ErasedWriter ⓘ
Yield a writer for this batch.
Source§fn make_writer_for(&self, sev: Severity) -> ErasedWriter ⓘ
fn make_writer_for(&self, sev: Severity) -> ErasedWriter ⓘ
Yield a severity-specific writer; defaults to
Self::make_writer.Auto Trait Implementations§
impl<L, H> Freeze for LevelSplitWriter<L, H>
impl<L, H> RefUnwindSafe for LevelSplitWriter<L, H>where
L: RefUnwindSafe,
H: RefUnwindSafe,
impl<L, H> Send for LevelSplitWriter<L, H>
impl<L, H> Sync for LevelSplitWriter<L, H>
impl<L, H> Unpin for LevelSplitWriter<L, H>
impl<L, H> UnsafeUnpin for LevelSplitWriter<L, H>where
L: UnsafeUnpin,
H: UnsafeUnpin,
impl<L, H> UnwindSafe for LevelSplitWriter<L, H>where
L: UnwindSafe,
H: 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