[][src]Function console_log::log

pub fn log(record: &Record)

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

This example is not tested
fern::Dispatch::new()
    .chain(fern::Output::call(console_log::log))
    .apply()?;