From 0a7c8047b348418994d573d5b1e10af635ad111b Mon Sep 17 00:00:00 2001 From: Raphael Nestler Date: Sat, 3 Dec 2022 17:08:14 +0100 Subject: [PATCH 1/2] Update env_logger to 0.10.0 in README example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 75add88f..193f11f2 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ It must be added along with `log` to the project dependencies: ```toml [dependencies] log = "0.4.0" -env_logger = "0.9.0" +env_logger = "0.10.0" ``` `env_logger` must be initialized as early as possible in the project. After it's initialized, you can use the `log` macros to do actual logging. From 1bafee8aaf6a89077de41393743605a6917b578f Mon Sep 17 00:00:00 2001 From: Raphael Nestler Date: Sat, 3 Jun 2023 15:56:55 +0200 Subject: [PATCH 2/2] Use cargo add instead of a toml snippet --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 193f11f2..ffc15195 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,8 @@ Implements a logger that can be configured via environment variables. It must be added along with `log` to the project dependencies: -```toml -[dependencies] -log = "0.4.0" -env_logger = "0.10.0" +```bash +$ cargo add log env_logger ``` `env_logger` must be initialized as early as possible in the project. After it's initialized, you can use the `log` macros to do actual logging.