pub trait Flusher: Debug + Send {
// Required method
fn flush(&self, logs: &str);
}
Expand description
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!