pub struct Logger { /* private fields */ }Implementations§
Source§impl Logger
impl Logger
pub fn new(log_level: LogLevel, log_file: Option<&str>) -> Self
pub fn set_file(&mut self, file_name: &str)
pub fn remove_file(&mut self)
pub fn set_log_level(&mut self, log_level: LogLevel)
pub fn silly<T: Serialize + 'static>( &self, message: &str, tag: &str, at: bool, object: T, )
pub fn debug<T: Serialize + 'static>( &self, message: &str, tag: &str, at: bool, object: T, )
pub fn info<T: Serialize + 'static>( &self, message: &str, tag: &str, at: bool, object: T, )
pub fn warn<T: Serialize + 'static>( &self, message: &str, tag: &str, at: bool, object: T, )
pub fn error<T: Serialize + 'static>( &self, message: &str, tag: &str, at: bool, object: T, )
pub fn fatal<T: Serialize + 'static>( &self, message: &str, tag: &str, at: bool, object: T, )
pub fn silly_single(&self, message: &str, tag: &str)
pub fn debug_single(&self, message: &str, tag: &str)
pub fn info_single(&self, message: &str, tag: &str)
pub fn warn_single(&self, message: &str, tag: &str)
pub fn error_single(&self, message: &str, tag: &str)
pub fn fatal_single(&self, message: &str, tag: &str)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Logger
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin 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