Just for debugging in Rust.
Add dependency to Cargo.toml
toml
[dependencies]
elog = "^0.3"
In your main.rs
or lib.rs
:
```rust
extern crate elog; ```
trace!()
will use current thread id as prefix.rust
trace!(value);
debug!(value);
debug!("formatted: {}", value);
info!(value);
error!(value);
warn!(value);
rust
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.