Crates.io | mlzlog |
lib.rs | mlzlog |
version | 0.8.3 |
source | src |
created_at | 2017-05-22 12:03:23.973274 |
updated_at | 2024-10-03 12:54:07.372345 |
description | A collection of log4rs tools to log like the mlzlog Python package |
homepage | |
repository | https://github.com/birkenfeld/mlzlog-rs |
max_upload_size | |
id | 15572 |
size | 45,713 |
This is a Rust crate that provides a log4rs
configuration with custom
appenders that logs like the mlzlog
Python package.
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.
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");
}