mhlog

Latest version Documentation GitHub license

mhlog is a simple, thread-safe logging library.

Usage

toml [dependencies] mhlog = "~2.0.0"

```rust extern crate mhlog;

use mhlog::{log,info,warn,err};

log!("Log message. Prefixed with a timestamp. It's {}", "thread-safe!"); info!("Logging message prefixed by ' Info:' "); warn!("Warning message prefixed by ' Warning:' "); err!("Error message prefixed by ' Error:' "); ```

Writes log messages to stdout/stderr. The writes are thread-safe. If an error occurs when writing to the log file it panics.

Provided logging macros:

Changelog

v2.0.0

v1.1.0

v1.0.1