diff --git a/README.md b/README.md index 908e535e..4fd19e98 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,7 @@ easy alternative. ## Usage ```rust -#[macro_use] extern crate log; -extern crate simplelog; +use log::{debug, error, info}; use simplelog::*; @@ -55,7 +54,7 @@ and my_rust_binary.log ## Getting Started Just add -``` +```toml [dependencies] simplelog = "^0.12.0" ``` @@ -65,7 +64,7 @@ to your `Cargo.toml` This crate can internally depend on a [paris](https://github.com/0x20F/paris) crate to provide support for ANSI color and styles. To use this feature you need to set a _paris_ feature, like this: -``` +```toml [dependencies] simplelog = { version = "^0.11.0", features = ["paris"] } ```