mhlog is a simple, thread-safe logging library.
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: