mhlog

Latest version Documentation GitHub license

mhlog is a simple, thread-safe logging library.

Usage

toml [dependencies] mhlog = "1.0"

```rust extern crate mhlog;

use mhlog::{info,error};

mhlog::init(mhlog::Lvl::Info, "test", false); info!("an info message"); error!("an error message..."); ```

Writes log messages to stdout/stderr, and optionally to a log file. If an error occurs when writing to the log file it panics.

Each log message is prefixed, indicating the logging level. Logging levels are:

Changelog

v1.1.0

v1.0.1