pub struct LogCapture;Expand description
The process-wide capture. Entries are recorded only while a guard of LogCapture::install is
alive; the ring keeps the last 1024.
Implementations§
Source§impl LogCapture
impl LogCapture
Sourcepub fn capture_from(level: LogEventLevel)
pub fn capture_from(level: LogEventLevel)
Captures events from level up while the tee is installed (Information by default).
Auto Trait Implementations§
impl Freeze for LogCapture
impl RefUnwindSafe for LogCapture
impl Send for LogCapture
impl Sync for LogCapture
impl Unpin for LogCapture
impl UnsafeUnpin for LogCapture
impl UnwindSafe for LogCapture
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more