Trait service_logging::Logger[][src]

pub trait Logger: Send {
#[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
; }

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]

Send entries to logger

Loading content...

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]

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]

Send logs to Coralogix service. May return error if there was a problem sending.

Loading content...