simple-logging 1.0.0

A simple logger for the log facade
Documentation
|Crate|Documentation|Linux/OS X|Windows|
|:---:|:-----------:|:--------:|:-----:|
|[![Crate](https://img.shields.io/crates/v/simple-logging.svg)](https://crates.io/crates/simple-logging)|[![Documentation](https://docs.rs/simple-logging/badge.svg)](https://docs.rs/simple-logging/)|[![Build Status](https://travis-ci.org/Ereski/simple-logging.svg?branch=master)](https://travis-ci.org/Ereski/simple-logging)|[![Build Status](https://ci.appveyor.com/api/projects/status/github/Ereski/simple-logging.svg?branch=master&svg=true)](https://ci.appveyor.com/project/Ereski/simple-logging/brach/master)|

A simple logger for the [`log`](https://crates.io/crates/log) facade. One log
message is written per line. Each line also includes the time it was logged,
the logging level and the ID of the thread. See
[`SimpleLogger`](struct.SimpleLogger.html) for more details.

# Examples

Most users will simply need to call [`log_to_file()`](fn.log_to_file.html)
with the path to the log file and minimum log level:

```rust
use log::LogLevelFilter;

simple_logging::log_to_file("test.log", LogLevelFilter::Info);
```

Or use [`log_to_stderr()`](fn.log_to_stderr.html) if simply logging to
`stderr`:

```rust
use log::LogLevelFilter;

simple_logging::log_to_stderr(LogLevelFilter::Info);
```

For more control, [`log_to()`](fn.log_to.html) can be used with an
arbitrary sink implementing
[`Write`](https://doc.rust-lang.org/std/io/trait.Write.html):

```rust
use log::LogLevelFilter;
use std::io;

simple_logging::log_to(io::sink(), LogLevelFilter::Info);