Skip to content

Commit 6562f9a

Browse files
committed
docs(changelog): Add migration guide
1 parent 8c94cd5 commit 6562f9a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1515

1616
## [0.11.0] - 2024-01-19
1717

18+
### Migration Guide
19+
20+
**env_logger::fmt::Style:**
21+
The bespoke styling API, behind `color`, was removed, in favor of accepting any
22+
ANSI styled string and adapting it to the target stream's capabilities.
23+
24+
Possible styling libraries include:
25+
- [anstyle](https://docs.rs/anstyle) is a minimal, runtime string styling API and is re-exported as `env_logger::fmt::style`
26+
- [owo-colors](https://docs.rs/owo-colors) is a feature rich runtime string styling API
27+
- [color-print](https://docs.rs/color-print) for feature-rich compile-time styling API
28+
29+
[custom_format.rs](https://docs.rs/env_logger/latest/src/custom_format/custom_format.rs.html)
30+
uses `anstyle` via
31+
[`Formatter::default_level_style`](https://docs.rs/env_logger/latest/env_logger/fmt/struct.Formatter.html#method.default_level_style)
32+
1833
### Breaking Change
1934

2035
- Removed bespoke styling API

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy