Skip to content

Commit

Permalink
docs(changelog): Add migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Feb 13, 2024
1 parent 8c94cd5 commit 6562f9a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [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](https://docs.rs/anstyle) is a minimal, runtime string styling API and is re-exported as `env_logger::fmt::style`
- [owo-colors](https://docs.rs/owo-colors) is a feature rich runtime string styling API
- [color-print](https://docs.rs/color-print) for feature-rich compile-time styling API

[custom_format.rs](https://docs.rs/env_logger/latest/src/custom_format/custom_format.rs.html)
uses `anstyle` via
[`Formatter::default_level_style`](https://docs.rs/env_logger/latest/env_logger/fmt/struct.Formatter.html#method.default_level_style)

### Breaking Change

- Removed bespoke styling API
Expand Down

0 comments on commit 6562f9a

Please sign in to comment.