pub trait LogProcessor: Send + Sync + Debug {
    // Required methods
    fn emit(&self, data: LogData);
    fn force_flush(&self) -> Result<(), LogError>;
    fn shutdown(&mut self) -> Result<(), LogError>;
}
Expand description

The interface for plugging into a Logger.

Required Methods§

source

fn emit(&self, data: LogData)

Called when a log record is ready to processed and exported.

source

fn force_flush(&self) -> Result<(), LogError>

Force the logs lying in the cache to be exported.

source

fn shutdown(&mut self) -> Result<(), LogError>

Shuts down the processor.

Implementors§