From dcd220dfaf1d731d7649d24807009a7229f5e2f2 Mon Sep 17 00:00:00 2001 From: Alex Touchet Date: Fri, 25 Nov 2022 20:47:09 -0800 Subject: [PATCH 1/2] Update listed version number --- Cargo.toml | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3759d7a9..59afe20f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ description = """ A logging implementation for `log` which is configured via an environment variable. """ -repository = "https://github.com/rust-cli/env_logger/" +repository = "https://github.com/rust-cli/env_logger" categories = ["development-tools::debugging"] keywords = ["logging", "log", "logger"] license = "MIT OR Apache-2.0" diff --git a/README.md b/README.md index d4b5763d..7b31421b 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Implements a logger that can be configured via environment variables. It must be added along with `log` to the project dependencies: -```bash +```console $ cargo add log env_logger ``` @@ -83,7 +83,7 @@ Tests can use the `env_logger` crate to see log messages generated during that t log = "0.4.0" [dev-dependencies] -env_logger = "0.9.0" +env_logger = "0.10.0" ``` ```rust From 983837c47b4c05a6103ff6a5a5f6dabc42a2007b Mon Sep 17 00:00:00 2001 From: Alex Touchet Date: Fri, 25 Nov 2022 20:58:39 -0800 Subject: [PATCH 2/2] Update links and remove broken badge --- README.md | 3 +-- src/lib.rs | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7b31421b..1457ecd7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [![crates.io](https://img.shields.io/crates/v/env_logger.svg)](https://crates.io/crates/env_logger) [![Documentation](https://docs.rs/env_logger/badge.svg)](https://docs.rs/env_logger) -[![Documentation](https://img.shields.io/badge/docs-main-blue.svg)](https://env-logger-rs.github.io/env_logger/env_logger/index.html) Implements a logger that can be configured via environment variables. @@ -72,7 +71,7 @@ There is also a pseudo logging level, `off`, which may be specified to disable all logging for a given module or for the entire application. As with the logging levels, the letter case is not significant. -`env_logger` can be configured in other ways besides an environment variable. See [the examples](https://github.com/env-logger-rs/env_logger/tree/main/examples) for more approaches. +`env_logger` can be configured in other ways besides an environment variable. See [the examples](https://github.com/rust-cli/env_logger/tree/main/examples) for more approaches. ### In tests diff --git a/src/lib.rs b/src/lib.rs index d2dd5fdf..4e5d5428 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -256,9 +256,9 @@ //! env_logger::Builder::from_env(Env::default().default_filter_or("warn")).init(); //! ``` //! -//! [gh-repo-examples]: https://github.com/env-logger-rs/env_logger/tree/main/examples +//! [gh-repo-examples]: https://github.com/rust-cli/env_logger/tree/main/examples //! [level-enum]: https://docs.rs/log/latest/log/enum.Level.html -//! [log-crate-url]: https://docs.rs/log/ +//! [log-crate-url]: https://docs.rs/log //! [`Builder`]: struct.Builder.html //! [`Builder::is_test`]: struct.Builder.html#method.is_test //! [`Env`]: struct.Env.html @@ -329,7 +329,7 @@ struct Var<'a> { /// the associated [`Builder`] and install it with the /// [`log` crate][log-crate-url] directly. /// -/// [log-crate-url]: https://docs.rs/log/ +/// [log-crate-url]: https://docs.rs/log /// [`init()`]: fn.init.html /// [`try_init()`]: fn.try_init.html /// [`Builder::init()`]: struct.Builder.html#method.init