elog
Just for debugging in Rust.
Usage
Add dependency to Cargo.toml
[]
= "^0.3"
In your main.rs or lib.rs:
extern crate elog;
trace!() will use current thread id as prefix.
Macros
trace!;
debug!;
debug!;
info!;
error!;
warn!;
Macros for command line application
infos!;
infos!;
warns!;
errors!;
errors_and_exit!;
Logging level setup
Set your environment variable: ELOG.
ELOG defaults to the trace level.
ELOG only used for normal macros. Command line macros will always print messages.
Supported values:
- trace
- debug
- info
- warn
- error
Screenshots

License
elog is primarily distributed under the terms of the MIT license. See LICENSE for details.