Skip to content

Conversation

@renovate
Copy link

@renovate renovate bot commented Jun 15, 2021

This PR contains the following updates:

Package Type Update Change
env_logger dependencies minor 0.5.100.11.0

Release Notes

rust-cli/env_logger (env_logger)

v0.11.8

Compare Source

Compatibility
  • (kv) Deprecate the unstable-kv feature which may be removed in a future patch release
Features
  • (kv) Stabilize key-value support behind the kv feature
  • Expose ConfigurableFormat to build custom [Builder::format]s that leverage this

v0.11.7

Compare Source

Internal
  • Replaced humantime with jiff

v0.11.6

Compare Source

Features
  • Opt-in file and line rendering

v0.11.5

Compare Source

v0.11.4

Compare Source

v0.11.3

Compare Source

Features
  • Experimental support for key-value logging behind unstable-kv

v0.11.2

Compare Source

v0.11.1

Compare Source

Fixes
  • Allow styling with Target::Pipe

v0.11.0

Compare Source

Migration Guide

env_logger::fmt::Style:
The bespoke styling API, behind color, was removed, in favor of accepting any
ANSI styled string and adapting it to the target stream's capabilities.

Possible styling libraries include:

  • anstyle is a minimal, runtime string styling API and is re-exported as env_logger::fmt::style
  • owo-colors is a feature rich runtime string styling API
  • color-print for feature-rich compile-time styling API

custom_format.rs
uses anstyle via
Formatter::default_level_style

Breaking Change
  • Removed bespoke styling API
    • env_logger::fmt::Formatter::style
    • env_logger::fmt::Formatter::default_styled_level
    • env_logger::fmt::Style
    • env_logger::fmt::Color
    • env_logger::fmt::StyledValue
  • Removed env_logger::filter in favor of env_filter
Compatibility

MSRV changed to 1.71

Features
  • Automatically adapt ANSI escape codes in logged messages to the current terminal's capabilities
  • Add support for NO_COLOR and CLICOLOR_FORCE, see https://bixense.com/clicolors/
Fixes
  • Print colors when is_test(true)

v0.10.2

Compare Source

Performance
  • Avoid extra UTF-8 validation performed in some cases
Fixes
  • Ensure custom pipes/stdout get flushed
  • Don't panic on broken pipes when color is disabled

v0.10.1

Compare Source

Performance
  • Avoid hashing directives and accessing RNG on startup
Documentation
  • Tweak RUST_LOG documentation

v0.10.0

Compare Source

MSRV changed to 1.60 to hide optional dependencies

Fixes
  • Resolved soundness issue by switching from atty to is-terminal
Breaking Changes

To open room for changing dependencies:

  • Renamed termcolor feature to color
  • Renamed atty feature to auto-color

v0.9.3

Compare Source

  • Fix a regression from v0.9.2 where env_logger would fail to compile with the termcolor feature turned off.

v0.9.2

Compare Source

  • Fix a regression from v0.9.2 where env_logger would fail to compile with the termcolor feature turned off.

v0.9.1

Compare Source

v0.9.0

Compare Source

Breaking Changes
  • Default message format now prints the target instead of the module
Improvements
  • Added a method to print the module instead of the target

v0.8.4

Compare Source

Breaking Changes
  • Default message format now prints the target instead of the module
Improvements
  • Added a method to print the module instead of the target

v0.8.3: 0.8.3

Compare Source

New features:

  • Suffix customization for the default formatter (Builder::format_suffix) [#​192]

Improvements:

  • Improve documentation about log level names [#​189]

Bug fixes:

  • Ignore whitespace-only filter specifications [#​188]
  • Remove unneded files from crates.io tarball (including rust-toolchain whose presence caused issues for a few people)

v0.8.2: 0.8.2

Compare Source

Fixed a panic on io errors when writing to stdout / stderr (#​184).

v0.8.1: 0.8.1

Compare Source

Update links in the documentation that were pointing to the old repository location.

v0.8.0: 0.8.0

Compare Source

Breaking changes:

  • Update public dependency humantime to 2.0

Improvements:

  • Update default colors for debug (white => blue) and trace (black => cyan)

Deprecations:

  • env_logger::from_env has been deprecated in favor of env_logger::Builder::from_env

This release raises the minimum supported Rust version to 1.41.0.

v0.7.1: 0.7.1

Compare Source

Key Changes

  • More thread-local durability

Contributions

v0.7.0: 0.7.0

Compare Source

Key Changes

  • Indent multiline messages by default
  • Support more timestamp precision
  • Update to the 2018 edition

Changes to minimum Rust

The minimum version of Rust required has been set at 1.31.0. We may change this in patch versions, but will always flag it in the release notes here.

You can always check the .travis.yml file to see the current minimum supported version.

Contributions

v0.6.2: 0.6.2

Compare Source

Key Changes

  • Additional examples and docs

Contributions

v0.6.1: 0.6.1

Compare Source

Key Changes

  • Support better capturing for cargo test
  • Don't print internal logs to stdout

Contributions

More Details

Builder::is_test

The is_test method can be used in tests to make sure logs are captured by cargo test the same way println! is:

fn init() {
    let _ = env_logger::builder().is_test(true).try_init();
}

#[test]
fn it_adds_one() {
    init();

    info!("can log from the test too");
    assert_eq!(3, add_one(2));
}

There are performance implications of using is_test though, so it should be avoided outside of unit tests.

v0.6.0: 0.6.0

Compare Source

Key Changes

  • Set a policy for changes to the default format
  • Make all dependencies besides log optional (but enabled by default)

Breaking Changes

  • The default format is not considered stable across patch versions. The best way to get a stable format for later ripgrepping is to define a custom one.
  • All dependencies have been made optional except for log. That means compiling env_logger with default-features=false will result in a different experience than in 0.5.x.

Contributions

More Details

Disabling dependencies

Using default-features=false will disable all dependencies of env_logger besides log. This will reduce compile times and alter the default format by disabling colours and timestamps.

Disabling default dependencies is the recommended way to use env_logger for libraries that only need it for logging in tests.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/env_logger-0.x branch from cc5a577 to 926b51f Compare October 18, 2021 20:05
@renovate renovate bot changed the title Update Rust crate env_logger to 0.8.4 Update Rust crate env_logger to 0.9.0 Oct 18, 2021
@renovate renovate bot force-pushed the renovate/env_logger-0.x branch from 926b51f to afec154 Compare September 25, 2022 22:00
@renovate renovate bot changed the title Update Rust crate env_logger to 0.9.0 Update Rust crate env_logger to 0.9.1 Sep 25, 2022
@renovate renovate bot force-pushed the renovate/env_logger-0.x branch from afec154 to aeb49e8 Compare November 20, 2022 17:37
@renovate renovate bot changed the title Update Rust crate env_logger to 0.9.1 Update Rust crate env_logger to 0.9.3 Nov 20, 2022
@renovate renovate bot force-pushed the renovate/env_logger-0.x branch from aeb49e8 to 592236f Compare March 16, 2023 22:04
@renovate renovate bot changed the title Update Rust crate env_logger to 0.9.3 Update Rust crate env_logger to 0.10.0 Mar 16, 2023
@renovate renovate bot force-pushed the renovate/env_logger-0.x branch from 592236f to c93293b Compare November 11, 2023 05:54
@renovate renovate bot changed the title Update Rust crate env_logger to 0.10.0 Update Rust crate env_logger to 0.10.1 Nov 11, 2023
@renovate renovate bot force-pushed the renovate/env_logger-0.x branch from c93293b to ef5ac44 Compare January 18, 2024 02:29
@renovate renovate bot changed the title Update Rust crate env_logger to 0.10.1 Update Rust crate env_logger to 0.10.2 Jan 18, 2024
@renovate renovate bot force-pushed the renovate/env_logger-0.x branch from ef5ac44 to 5c91aa5 Compare January 19, 2024 20:44
@renovate renovate bot changed the title Update Rust crate env_logger to 0.10.2 Update Rust crate env_logger to 0.11.0 Jan 19, 2024
@renovate renovate bot force-pushed the renovate/env_logger-0.x branch from 5c91aa5 to 13621b8 Compare January 27, 2024 05:53
@renovate renovate bot changed the title Update Rust crate env_logger to 0.11.0 Update Rust crate env_logger to 0.11.1 Jan 27, 2024
@renovate renovate bot force-pushed the renovate/env_logger-0.x branch from 13621b8 to b35c7c3 Compare February 14, 2024 02:34
@renovate renovate bot changed the title Update Rust crate env_logger to 0.11.1 Update Rust crate env_logger to 0.11.2 Feb 14, 2024
@renovate renovate bot force-pushed the renovate/env_logger-0.x branch from b35c7c3 to 92b83ff Compare March 6, 2024 05:47
@renovate renovate bot changed the title Update Rust crate env_logger to 0.11.2 Update Rust crate env_logger to 0.11.3 Mar 6, 2024
@renovate renovate bot force-pushed the renovate/env_logger-0.x branch from 92b83ff to cf6a0c9 Compare May 5, 2024 08:51
@renovate renovate bot changed the title Update Rust crate env_logger to 0.11.3 Update Rust crate env_logger to 0.11.0 May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants