Trait trillium_logger::Targetable

source ·
pub trait Targetable: Send + Sync + 'static {
    // Required method
    fn write(&self, data: String);
}
Expand description

A trait for log targets. Implemented for Target and for all Fn(String) + Send + Sync + 'static.

Required Methods§

source

fn write(&self, data: String)

write a log line

Implementors§

source§

impl Targetable for Target

source§

impl<F> Targetable for F
where F: Fn(String) + Send + Sync + 'static,