Function console_log::log

source ·
pub fn log(record: &Record<'_>)
Expand description

Print a log::Record to the browser’s console at the appropriate level.

This function is useful for integrating with the fern logger crate.

Example

fern::Dispatch::new()
    .chain(fern::Output::call(console_log::log))
    .apply()?;