[PR #414] [CLOSED] Bump env_logger from 0.5.6 to 0.5.8 #1425

Closed
opened 2026-03-16 02:05:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hickory-dns/hickory-dns/pull/414
Author: @dependabot-preview[bot]
Created: 4/20/2018
Status: Closed

Base: masterHead: dependabot/cargo/env_logger-0.5.8


📝 Commits (1)

  • 23aec5d Bump env_logger from 0.5.6 to 0.5.8

📊 Changes

4 files changed (+10 additions, -10 deletions)

View changed files

📝 Cargo.lock (+7 -7)
📝 compatibility-tests/Cargo.toml (+1 -1)
📝 integration-tests/Cargo.toml (+1 -1)
📝 util/Cargo.toml (+1 -1)

📄 Description

Bumps env_logger from 0.5.6 to 0.5.8.

Release notes

Sourced from env_logger's releases.

0.5.8

Key Changes

  • Support setting default values for environment variables before initialising a logger

Contributions

More Details

Env::filter_or and Env::write_style_or

Default values for environment variables can be specified on the Env type using the filter_or and write_style_or methods. The default value is a string in the same format as the environment variable:

impl Env {
    fn filter_or<E, V>(self, filter_env: E, default: V) -> Self
    where
        E: Into<Cow<'a, str>>,
        V: Into<Cow<'a, str>>;

    fn write_style_or<E, V>(self, write_style_env: E, default: V) -> Self
        where
            E: Into<Cow<'a, str>>,
            V: Into<Cow<'a, str>>;
}

In usage:

let env = Env::default()
    .filter_or("MY_LOG_LEVEL", "trace")
    .write_style_or("MY_LOG_STYLE", "always");

env_logger::init_from_env(env);

DEFAULT_FILTER_ENV and DEFAULT_WRITE_STYLE_ENV

Two new constants are publicly exported that correspond to the default environment variable names used for the filters and style preferences.

0.5.7

Contributions

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot ignore this [minor|major] version will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use [this|these] label[s] will set the current labels as the default for future PRs for this repo and language

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)

Finally, you can contact us by mentioning @dependabot.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hickory-dns/hickory-dns/pull/414 **Author:** [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview) **Created:** 4/20/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `dependabot/cargo/env_logger-0.5.8` --- ### 📝 Commits (1) - [`23aec5d`](https://github.com/hickory-dns/hickory-dns/commit/23aec5ddb8da05e45bc0a704cc50780fcd56ea70) Bump env_logger from 0.5.6 to 0.5.8 ### 📊 Changes **4 files changed** (+10 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+7 -7) 📝 `compatibility-tests/Cargo.toml` (+1 -1) 📝 `integration-tests/Cargo.toml` (+1 -1) 📝 `util/Cargo.toml` (+1 -1) </details> ### 📄 Description Bumps [env_logger](https://github.com/sebasmagri/env_logger) from 0.5.6 to 0.5.8. <details> <summary>Release notes</summary> *Sourced from env_logger's [releases](https://github.com/sebasmagri/env_logger/releases).* > ## 0.5.8 > # Key Changes > > - Support setting default values for environment variables before initialising a logger > > # Contributions > > - [**KodrAus**](https://github.com/KodrAus) [Add support for default env values](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/81) > > # More Details > > ## `Env::filter_or` and `Env::write_style_or` > > Default values for environment variables can be specified on the `Env` type using the `filter_or` and `write_style_or` methods. The default value is a string in the same format as the environment variable: > > ```rust > impl Env { > fn filter_or<E, V>(self, filter_env: E, default: V) -> Self > where > E: Into<Cow<'a, str>>, > V: Into<Cow<'a, str>>; > > fn write_style_or<E, V>(self, write_style_env: E, default: V) -> Self > where > E: Into<Cow<'a, str>>, > V: Into<Cow<'a, str>>; > } > ``` > > In usage: > > ```rust > let env = Env::default() > .filter_or("MY_LOG_LEVEL", "trace") > .write_style_or("MY_LOG_STYLE", "always"); > > env_logger::init_from_env(env); > ``` > > ## `DEFAULT_FILTER_ENV` and `DEFAULT_WRITE_STYLE_ENV` > > Two new constants are publicly exported that correspond to the default environment variable names used for the filters and style preferences. > > ## 0.5.7 > # Contributions > > - [**KodrAus**](https://github.com/KodrAus) [Add from_env methods to Logger directly](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/78) > - [**lnicola**](https://github.com/lnicola) [Add note about dashes](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/77) </details> <details> <summary>Commits</summary> - [`afd147a`](https://github.com/sebasmagri/env_logger/commit/afd147abca033a6849d894c728f2e280da37b3e7) prepare for 0.5.8 release ([#83](https://github-redirect.dependabot.com/sebasmagri/env_logger/issues/83)) - [`a8586cf`](https://github.com/sebasmagri/env_logger/commit/a8586cfcbaa0c1b81295851ddbeef34f335edff9) Add support for default env values ([#81](https://github-redirect.dependabot.com/sebasmagri/env_logger/issues/81)) - [`b43890a`](https://github.com/sebasmagri/env_logger/commit/b43890a739bbf0e51bbef7e5e2ac7ca01b479819) prepare for 0.5.7 release ([#79](https://github-redirect.dependabot.com/sebasmagri/env_logger/issues/79)) - [`3bac225`](https://github.com/sebasmagri/env_logger/commit/3bac225fed71ecc1a168cf648b55818ff52b9e09) Merge pull request [#78](https://github-redirect.dependabot.com/sebasmagri/env_logger/issues/78) from KodrAus/feat/logger-from-env - [`464426c`](https://github.com/sebasmagri/env_logger/commit/464426c90dfbc7e9f024abd2fff10a2317d76024) add from_env methods to Logger directly - [`f7af715`](https://github.com/sebasmagri/env_logger/commit/f7af7153e774945bc7516058f9f120a369c5ec2f) Merge pull request [#77](https://github-redirect.dependabot.com/sebasmagri/env_logger/issues/77) from lnicola/dash-warning - [`ce88416`](https://github.com/sebasmagri/env_logger/commit/ce884168b87942b11bab420e365fedb5c3045f2f) Add note about dashes - See full diff in [compare view](https://github.com/sebasmagri/env_logger/compare/v0.5.6...v0.5.8) </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/ci_status?dependency-name=env_logger&package-manager=cargo&previous-version=0.5.6&new-version=0.5.8)](https://dependabot.com/compatibility-score.html?dependency-name=env_logger&package-manager=cargo&previous-version=0.5.6&new-version=0.5.8) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. --- **Note:** This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit. You can always request more updates by clicking `Bump now` in your [Dependabot dashboard](https://app.dependabot.com). <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot ignore this [minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use [this|these] label[s]` will set the current labels as the default for future PRs for this repo and language Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) Finally, you can contact us by mentioning @dependabot. </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-16 02:05:40 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#1425
No description provided.