elog

status

Simple logging implementation for Rust.

Screenshot

Usage

Add dependency to Cargo.toml

toml [dependencies] elog = "0.2.0"

In your main.rs or lib.rs:

```rust

[macro_use]

extern crate elog; ```

Macros

rust debug!(value); debug!("formatted: {}", value); info!(value); error!(value); warn!(value); error_and_exit!(message);

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 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.