Trait service_logging::Logger [−][src]
Trait for logging service that receives log messages
Required methods
#[must_use]fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
sub: &'life1 str,
entries: Vec<LogEntry>
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
sub: &'life1 str,
entries: Vec<LogEntry>
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Send entries to logger
Implementors
impl Logger for ConsoleLogger
[src]
ConsoleLogger on non-wasm32 builds outputs with println!, to support debugging and testing
fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
sub: &'life1 str,
entries: Vec<LogEntry>
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
sub: &'life1 str,
entries: Vec<LogEntry>
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Sends logs to console.log handler
impl Logger for CoralogixLogger
[src]
fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
sub: &'life1 str,
entries: Vec<LogEntry>
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
sub: &'life1 str,
entries: Vec<LogEntry>
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Send logs to Coralogix service. May return error if there was a problem sending.