Skip to content

lynks--/loge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loge

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), and warn! (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
}

About

loge - simple, fast terminal logging for rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages