loge - simple, fast terminal logging for rust
Overview
Just want simple terminal logging macros? Feel like slog is overkill for your project and don't feel good about the marginal runtime costs of log? loge might be the doge for you.
Features
- No run-time verbosity level checking, zero-cost macros in the disabled case.
- Three simple levels:
debug!
(opt in),info!
(opt out), andwarn!
(always on).
Usage
#[macro_use] extern crate loge;
debug!("about to do the thing..."); // only printed if you enable the loge-debug feature
if let Ok(done) = do_the_thing() {
info!("thing done: {:?}", done); // printed unless you enable the loge-no-info feature
}
else {
warn!("failed to do the thing!"); // always printed
}