pub struct Logger { /* private fields */ }Expand description
The central logging dispatcher that routes messages to all registered sinks via a background thread.
Implementations§
Source§impl Logger
impl Logger
Sourcepub fn global() -> &'static Logger
pub fn global() -> &'static Logger
Retrieves or initializes the global singleton instance of the Logger.
Sourcepub fn dispatch(&self, level: LogLevel, text: String, is_debug: bool)
pub fn dispatch(&self, level: LogLevel, text: String, is_debug: bool)
Creates and sends a new log message to the background processing thread.
§Arguments
level- The severity level of the messagetext- The formatted log textis_debug- Whether this message should only be visible in debug builds
Auto Trait Implementations§
impl Freeze for Logger
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnsafeUnpin for Logger
impl UnwindSafe for Logger
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