pub struct MasterLogClient { /* private fields */ }Implementations§
Source§impl MasterLogClient
impl MasterLogClient
pub fn new(config: MasterLogConfig) -> Self
pub fn from_env() -> Self
pub fn log(&self, body: impl Into<String>) -> MasterLogResult
pub fn try_log( &self, body: impl Into<String>, ) -> Result<MasterLogResult, MasterLogError>
pub fn log_entry(&self, entry: LogEntry) -> MasterLogResult
pub fn try_log_entry( &self, entry: LogEntry, ) -> Result<MasterLogResult, MasterLogError>
pub fn trace(&self, body: impl Into<String>) -> MasterLogResult
pub fn debug(&self, body: impl Into<String>) -> MasterLogResult
pub fn info(&self, body: impl Into<String>) -> MasterLogResult
pub fn warn(&self, body: impl Into<String>) -> MasterLogResult
pub fn error(&self, body: impl Into<String>) -> MasterLogResult
pub fn fatal(&self, body: impl Into<String>) -> MasterLogResult
pub fn flush(&self, timeout: Duration) -> MasterLogResult
pub fn try_flush( &self, timeout: Duration, ) -> Result<MasterLogResult, MasterLogError>
pub fn shutdown(&self, timeout: Duration) -> MasterLogResult
pub fn try_shutdown( &self, timeout: Duration, ) -> Result<MasterLogResult, MasterLogError>
Trait Implementations§
Source§impl Clone for MasterLogClient
impl Clone for MasterLogClient
Source§fn clone(&self) -> MasterLogClient
fn clone(&self) -> MasterLogClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MasterLogClient
impl RefUnwindSafe for MasterLogClient
impl Send for MasterLogClient
impl Sync for MasterLogClient
impl Unpin for MasterLogClient
impl UnsafeUnpin for MasterLogClient
impl UnwindSafe for MasterLogClient
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