[−][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
or Logger
to initialize a custom logger.