elog ==== [![status](http://www.repostatus.org/badges/latest/inactive.svg)](http://www.repostatus.org/#inactive) Just for debugging in Rust. ## Usage Add dependency to Cargo.toml ```toml [dependencies] elog = "^0.3" ``` In your `main.rs` or `lib.rs`: ```rust #[macro_use] extern crate elog; ``` ## `trace!()` will use current thread id as prefix. ## Macros ```rust trace!(value); debug!(value); debug!("formatted: {}", value); info!(value); error!(value); warn!(value); ``` ## Macros for command line application ```rust infos!(message); infos!("formatted message: {}", message); warns!(message); errors!(message); errors_and_exit!(message); ``` ## 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 ![Screenshot](http://i.imgur.com/LeMih9g.png "Screenshot") ## License elog is primarily distributed under the terms of the MIT license. See [LICENSE](LICENSE) for details.