| Crates.io | elog |
| lib.rs | elog |
| version | 0.3.0 |
| created_at | 2016-11-11 16:54:53.505422+00 |
| updated_at | 2016-12-10 03:19:58.767065+00 |
| description | Simple logging for debugging. |
| homepage | https://github.com/fengcen/elog |
| repository | https://github.com/fengcen/elog.git |
| max_upload_size | |
| id | 7209 |
| size | 9,628 |
Just for debugging in Rust.
Add dependency to Cargo.toml
[dependencies]
elog = "^0.3"
In your main.rs or lib.rs:
#[macro_use]
extern crate elog;
trace!() will use current thread id as prefix.trace!(value);
debug!(value);
debug!("formatted: {}", value);
info!(value);
error!(value);
warn!(value);
infos!(message);
infos!("formatted message: {}", message);
warns!(message);
errors!(message);
errors_and_exit!(message);
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:

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