pub trait Host: Send {
    // Required method
    fn log<'life0, 'async_trait>(
        &'life0 mut self,
        level: Level,
        context: String,
        message: String,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn log<'life0, 'async_trait>( &'life0 mut self, level: Level, context: String, message: String, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Emit a log message.

A log message has a level describing what kind of message is being sent, a context, which is an uninterpreted string meant to help consumers group similar messages, and a string containing the message text.

Implementations on Foreign Types§

source§

impl<_T: Host + ?Sized + Send> Host for &mut _T

source§

fn log<'life0, 'async_trait>( &'life0 mut self, level: Level, context: String, message: String, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Emit a log message.

A log message has a level describing what kind of message is being sent, a context, which is an uninterpreted string meant to help consumers group similar messages, and a string containing the message text.

Implementors§