pub fn init()Expand description
Convenience function to initialize logging.
This function constructs the default builder default_builder and
initializes it, without any custom options.
If more flexibility is needed, see default_builder or basic_builder
Examples found in repository?
examples/simple.rs (line 5)
4fn main() {
5 colog::init();
6 error!("error message");
7 error!("error with fmt: {}", 42);
8 warn!("warn message");
9 info!("info message");
10 debug!("debug message");
11 trace!("trace message");
12
13 info!("multi line demonstration\nhere");
14 info!("more\nmulti\nline\nhere\nhere");
15}