slog-example-lib 0.3.0

Example of a library utilizing slog-rs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// An example of an application, using a library that supports `slog` logging.
///
/// In this case the application does not provide a `Logger` (passing `None` instead)
/// and the library will use fall-back.
extern crate slog_example_lib;
extern crate env_logger;

fn main() {
    env_logger::init().unwrap();

    let lib = slog_example_lib::MyLib::init(None);
    lib.do_the_thing();
}