pub struct Logger { /* private fields */ }
Implementations§
Source§impl Logger
impl Logger
pub fn init_logger()
pub async fn new( application: &str, level: &str, host: &str, port: u16, ) -> Result<Logger>
pub async fn reconnect(&self) -> Result<Logger>
pub async fn init( application: &str, level: &str, host: &str, port: u16, ) -> Result<Logger>
pub fn time_now() -> String
pub async fn info(&mut self, message: &str)
pub async fn infof(&mut self, fmt_str: Arguments<'_>)
pub async fn error(&mut self, message: &str)
pub async fn errorf(&mut self, fmt_str: Arguments<'_>)
pub async fn warn(&mut self, message: &str)
pub async fn warnf(&mut self, fmt_str: Arguments<'_>)
pub async fn debug(&mut self, message: &str)
pub async fn debugf(&mut self, fmt_str: Arguments<'_>)
pub async fn trace(&mut self, message: &str)
pub async fn tracef(&mut self, fmt_str: Arguments<'_>)
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