Trait fern::Logger
[−]
[src]
pub trait Logger: Sync + Send { fn log(&self, msg: &str, level: &LogLevel, location: &LogLocation) -> Result<(), LogError>; }
Basic fern logger trait. Something you can send messages to. We have a separate trait from log::Log, because we want errors to propagate upwards and only print in the outermost logger.
Required Methods
fn log(&self, msg: &str, level: &LogLevel, location: &LogLocation) -> Result<(), LogError>
Logs a given message in this logger.
Implementors
impl Logger for Box<Logger>
impl Logger for NullLogger