mlzlog in Rust
==============

[![Latest Version](https://img.shields.io/crates/v/mlzlog.svg)](https://crates.io/crates/mlzlog)

[Documentation](https://docs.rs/mlzlog/)

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

[`log4rs`]: https://github.com/sfackler/log4rs
[`mlzlog`]: http://pypi.python.org/pypi/mlzlog


Installation
============

This crate works with Cargo and can be found
on [crates.io](https://crates.io/crates/mlzlog) with a `Cargo.toml` like:

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

Usage
=====

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

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

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

    info!("starting up");
}
```
