pub trait CloudLogger: Send + Sync {
// Required methods
fn log<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 str,
level: LogLevel,
) -> Pin<Box<dyn Future<Output = Result<(), CloudError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn log_structured<'life0, 'life1, 'async_trait>(
&'life0 self,
entry: &'life1 LogEntry,
) -> Pin<Box<dyn Future<Output = Result<(), CloudError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
// Provided method
fn log_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
entries: &'life1 [LogEntry],
) -> Pin<Box<dyn Future<Output = Result<(), CloudError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait { ... }
}Expand description
Unified trait for cloud logging.