Trait wasmcloud_runtime::component::Logging

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

wasi:logging/logging implementation

Required Methods§

source

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

Handle wasi:logging/logging.log

Implementors§