Trait delog::Flusher[][src]

pub trait Flusher: Debug + Send {
    fn flush(&self, logs: &str);
}

A way to pass on logs, user supplied.

In embedded, this is intended to pend an interrupt to send the logs off via (USB) serial, semihosting, or similar.

On PC, typical implemenation will just println! or eprintln!

Required methods

fn flush(&self, logs: &str)[src]

Implementor must handle passed log &str in some hopefully useful way.

Loading content...

Implementors

impl Flusher for StderrFlusher[src]

impl Flusher for StdoutFlusher[src]

Loading content...