mhlog 1.0.0

mhlog is a simple, thread-safe logging library.
Documentation

mhlog

mhlog is a simple, thread-safe logging library.

Usage

[dependencies]
mhlog = "1.0"
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:

  • Fatal
  • Error
  • Warning
  • Important
  • Info
  • Debug
  • Trace

Changelog