[][src]Function logosaurus::init

pub fn init<W: Write + Send + 'static>(
    l: Logger<W>
) -> Result<(), SetLoggerError>

Initialize the logger to use with the log crate.

use log::{debug};

fn main() {
  logosaurus::init(logosaurus::Logger::default()).unwrap();
  debug!("hello, world");
}

See LoggerBuilder to create a custom logger.