pub struct ErrorLogger { /* private fields */ }Expand description
错误日志记录器
Implementations§
Source§impl ErrorLogger
impl ErrorLogger
Sourcepub fn new(config: LoggerConfig) -> Self
pub fn new(config: LoggerConfig) -> Self
创建新的错误日志记录器
Sourcepub fn log_api_error(&self, error: &LarkAPIError)
pub fn log_api_error(&self, error: &LarkAPIError)
记录API错误
Sourcepub fn log_error_event(&self, event: &ErrorEvent)
pub fn log_error_event(&self, event: &ErrorEvent)
记录错误事件
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorLogger
impl RefUnwindSafe for ErrorLogger
impl Send for ErrorLogger
impl Sync for ErrorLogger
impl Unpin for ErrorLogger
impl UnwindSafe for ErrorLogger
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