pub struct Logger { /* private fields */ }
Implementations
sourceimpl Logger
impl Logger
pub fn new(log_level: LoggingLevel, default_origin: String) -> Self
pub fn set_level(&mut self, level: LoggingLevel)
pub fn set_default_origin<T>(&mut self, default_origin: T)where
T: Into<String>,
pub fn log_origin_message<T>(
&self,
message: T,
message_log_type: LoggingType,
log_origin: Option<T>
)where
T: Into<String>,
pub fn log_message<T>(&self, message: T, message_log_type: LoggingType)where
T: Into<String>,
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnwindSafe for Logger
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more