Skip to content

Latest commit

 

History

History
134 lines (84 loc) · 3.95 KB

CHANGELOG.md

File metadata and controls

134 lines (84 loc) · 3.95 KB

Change Log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Unreleased - ReleaseDate

0.11.5 - 2024-07-25

0.11.4 - 2024-07-23

0.11.3 - 2024-03-05

Features

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

0.11.2 - 2024-02-13

0.11.1 - 2024-01-27

Fixes

  • Allow styling with Target::Pipe

0.11.0 - 2024-01-19

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)

0.10.2 - 2024-01-18

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

0.10.1 - 2023-11-10

Performance

  • Avoid hashing directives and accessing RNG on startup

Documentation

  • Tweak RUST_LOG documentation

0.10.0 - 2022-11-24

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

0.9.3 - 2022-11-07

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

0.9.2 - 2022-11-07

  • Fix and un-deprecate Target::Pipe, which was basically not working at all before and deprecated in 0.9.1.

0.9.0 -- 2022-07-14

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