mlzlog 0.7.0

A collection of log4rs tools to log like the mlzlog Python package
Documentation

mlzlog in Rust

Latest Version

Documentation

This is a Rust crate that provides a log4rs configuration with custom appenders that logs like the mlzlog Python package.

Installation

This crate works with Cargo and can be found on crates.io with a Cargo.toml like:

[dependencies]
log = "*"
mlzlog = "*"

Minimum supported Rust versions is 1.41.1.

Usage

Initialize logging at the beginning of your program and then use the macros from the log crate. Example:

#[macro_use]
extern crate log;
extern crate mlzlog;

fn main() {
    mlzlog::init("/path/to/base", "myapp", false, true);

    info!("starting up");
}