[][src]Trait logger_rs::logger::Bridge

pub trait Bridge<T = ()> {
    fn log(&self, msg: &str) -> T;
}

The bridge receives a message and transfers it to a specific destination (e.g: console or a file). You can make your own bridge by implementing this trait.

Required methods

fn log(&self, msg: &str) -> T

Loading content...

Implementors

impl Bridge<()> for Console[src]

impl<'_> Bridge<Result<(), Error>> for File<'_>[src]

Loading content...