Crate cute_log[−][src]
This crate provides simple and cute logger.
Feautres
timestamp
- Enables timestamps in logs by means ofchrono
. Enabled by defaultcolor
- Enables coloring of log level. Enabled by default.
Usage
#[macro_use] extern crate log; extern crate cute_log; fn main() { cute_log::init(); info!("it works!"); }
Log level control
The logger is made without any builtin filters.
You can either control logs through compile time features of log
crate.
Or use set_max_level
.
Structs
Logger |
Simple Logger implementation |
Functions
init |
Sets global logger with log level Trace |
init_with_max_level |
Sets logger with max log level. |