pub struct ShimLogger {}
Expand description
Implementation of log::Log
for use in the shim.
Includes some shim related metadata (such as simulation time), is no_std, and is careful to only make inlined syscalls to avoid getting intercepted by the shim’s seccomp filter.
Implementations§
Source§impl ShimLogger
impl ShimLogger
Sourcepub fn install(log_level: LevelFilter)
pub fn install(log_level: LevelFilter)
Install a ShimLogger
as the logging backend in the Rust log
crate.
Should only be called once.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShimLogger
impl RefUnwindSafe for ShimLogger
impl Send for ShimLogger
impl Sync for ShimLogger
impl Unpin for ShimLogger
impl UnwindSafe for ShimLogger
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