[][src]Function logosaurus::init

pub fn init(l: Logger) -> 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 or Logger to initialize a custom logger.