Skip to content

Port of "mlzlog" Python package

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

birkenfeld/mlzlog-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 = "0.4"
mlzlog = "0.8"

Minimum supported Rust versions is 1.63.0.

Usage

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

use log::info;

fn main() {
    mlzlog::init("/path/to/base", "myapp", mlzlog::Settings { ... });

    info!("starting up");
}

About

Port of "mlzlog" Python package

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages