elog
Simple logging implementation for Rust.
Usage
Add dependency to Cargo.toml
[]
= "0.1.0"
In your main.rs
or lib.rs
:
extern crate elog;
Macros
debug!;
debug!;
info!;
error!;
warn!;
error_and_exit!;
Macros for command line application
infos!;
infos!;
warns!;
errors!;
errors_and_exit!;
Logging level setup
Set your environment variable: ELOG
ELOG
defaults to the debug
level.
Support values:
debug
info
warn
error
Env ELOG
only used for normal macros. Command line macros will always print message.
License
elog is primarily distributed under the terms of the MIT license. See LICENSE for details.