pub struct LoggerCompat;Expand description
Legacy compatibility stub.
§Description
Previously a Lazy<Mutex<Log>>; now a zero-size unit type. Retained so that code
that imports crypt_guard_core::log::LOGGER or references it in log_activity! macro
expansions still compiles. No locking, no string buffer, no I/O.
Any code that previously called LOGGER.lock()…append_log(…) should migrate to
using tracing::info!(…) directly, or let the log_activity! macro handle it.
Implementations§
Source§impl LoggerCompat
impl LoggerCompat
Sourcepub fn append_log(&self, process: &str, detail: &str) -> Result<(), CryptError>
pub fn append_log(&self, process: &str, detail: &str) -> Result<(), CryptError>
Sourcepub fn write_log_file(&self) -> Result<(), CryptError>
pub fn write_log_file(&self) -> Result<(), CryptError>
Auto Trait Implementations§
impl Freeze for LoggerCompat
impl RefUnwindSafe for LoggerCompat
impl Send for LoggerCompat
impl Sync for LoggerCompat
impl Unpin for LoggerCompat
impl UnsafeUnpin for LoggerCompat
impl UnwindSafe for LoggerCompat
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