Crate tinylog[−][src]
Expand description
tinylog

I wrote this for my own projects. It’s published in case anyone else wants to use it (and for my own convenience).
Usage
#[macro_use]
extern crate log;
fn main() {
tinylog::init();
info!("beep boop");
}Configuration
Tinylog will use the RUST_LOG environment variable if set.
By default, this is debug for debug builds and info for release builds.
errorwarninfodebugtraceoff
The NO_COLOR and FORCE_COLOR environment variables are also respected. FORCE_COLOR takes precedence.
Timestamps
Enable the humantime feature to add timestamps to logs.
Structs
Used to configure logging.