Struct sod_log::LogDebugService
source · pub struct LogDebugService<'a> { /* private fields */ }Expand description
A sod::Service that logs Debug input at a configured log level to log::log, returning the input as output.
Implementations§
source§impl<'a> LogDebugService<'a>
impl<'a> LogDebugService<'a>
sourcepub fn new<S: Into<Cow<'a, str>>>(level: Level, prefix: S) -> Self
pub fn new<S: Into<Cow<'a, str>>>(level: Level, prefix: S) -> Self
Log input at the given log level
Arguments
level- The log levelprefix- A prefix to prepend to the beginning of the log statment
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for LogDebugService<'a>
impl<'a> Send for LogDebugService<'a>
impl<'a> Sync for LogDebugService<'a>
impl<'a> Unpin for LogDebugService<'a>
impl<'a> UnwindSafe for LogDebugService<'a>
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