Releases: rust-lang/log
Releases · rust-lang/log
0.4.22
What's Changed
- Add some clarifications to the library docs by @KodrAus in #620
- Add links to
colog
crate by @chrivers in #621 - adding line_number test + updating some testing infrastructure by @DIvkov575 in #619
- Clarify the actual set of functions that can race in _racy variants by @KodrAus in #623
- Replace deprecated std::sync::atomic::spin_loop_hint() by @Catamantaloedis in #625
- Check usage of max_level features by @Thomasdezeeuw in #627
- Remove unneeded import by @Thomasdezeeuw in #628
- Loosen orderings for logger initialization in #632. Originally by @pwoolcoc in #599
- Use Location::caller() for file and line info in #633. Originally by @Cassy343 in #520
New Contributors
- @chrivers made their first contribution in #621
- @DIvkov575 made their first contribution in #619
- @Catamantaloedis made their first contribution in #625
Full Changelog: 0.4.21...0.4.22
0.4.21
What's Changed
- Minor clippy nits by @nyurik in #578
- Simplify Display impl by @nyurik in #579
- Set all crates to 2021 edition by @nyurik in #580
- Various changes based on review by @Thomasdezeeuw in #583
- Fix typo in file_static() method doc by @dimo414 in #590
- Specialize empty key value pairs by @EFanZh in #576
- Fix incorrect lifetime in Value::to_str() by @peterjoel in #587
- Remove some API of the key-value feature by @Thomasdezeeuw in #585
- Add logcontrol-log and log-reload by @swsnr in #595
- Add Serialization section to kv::Value docs by @Thomasdezeeuw in #593
- Rename Value::to_str to to_cow_str by @Thomasdezeeuw in #592
- Clarify documentation and simplify initialization of
STATIC_MAX_LEVEL
by @ptosi in #594 - Update docs to 2021 edition, test by @nyurik in #577
- Add "alterable_logger" link to README.md by @brummer-simon in #589
- Normalize line ending by @EFanZh in #602
- Remove
ok_or
in favor ofOption::ok_or
by @AngelicosPhosphoros in #607 - Use
Acquire
ordering for initialization check by @AngelicosPhosphoros in #610 - Get structured logging API ready for stabilization by @KodrAus in #613
- Prepare for 0.4.21 release by @KodrAus in #617
New Contributors
- @nyurik made their first contribution in #578
- @dimo414 made their first contribution in #590
- @peterjoel made their first contribution in #587
- @ptosi made their first contribution in #594
- @brummer-simon made their first contribution in #589
- @AngelicosPhosphoros made their first contribution in #607
Full Changelog: 0.4.20...0.4.21
0.4.20
What's Changed
- Remove rustversion dev-dependency by @Thomasdezeeuw in #568
- Remove
local_inner_macros
usage by @EFanZh in #570 - Group
target_module
,path
andfile
arguments by @EFanZh in #575 - doc: Add log-to-defmt to other-facilities section by @chrysn in #574
New Contributors
Full Changelog: 0.4.19...0.4.20
0.4.19
⚠️ Possible breakage in no-std
Targets without atomic support, like thumbv4t-none-eabi
, may now fail to compile if you were using set_logger
or set_max_level
. Use the unsafe set_logger_racy
or set_max_level_racy
functions instead.
log
previously used a custom build script with a few specific targets listed to determine atomic support. Any that wasn't listed was assume to support them. It now uses Rust's target_has_atomic
cfg instead, which is more complete.
What's Changed
- Remove build.rs file by @GuillaumeGomez in #543
- Add the structured-logger crate to the README by @zensh in #548
- Prepare for 0.4.19 release by @KodrAus in #552
New Contributors
Full Changelog: 0.4.18...0.4.19
0.4.18
What's Changed
- fix markdown links (again) by @hellow554 in #513
- add cargo doc to workflow by @hellow554 in #515
- Apply Clippy lints by @hellow554 in #516
- Replace ad-hoc eq_ignore_ascii_case with slice::eq_ignore_ascii_case by @glandium in #519
- fix up windows targets by @KodrAus in #528
- typo fix by @jiangying000 in #529
- Remove dependency on cfg_if by @EriKWDev in #536
- GitHub Workflows security hardening by @sashashura in #538
- Fix build status badge by @atouchet in #539
- Add call_logger to the documentation by @a1ecbr0wn in #547
- Use stable internals for key-value API by @KodrAus in #550
- Change wording of list of implementations by @Thomasdezeeuw in #553
- Add std-logger to list of implementations by @Thomasdezeeuw in #554
- Add
set_max_level_racy
and gateset_max_level
by @djkoloski in #544 - [doc] src/lib.rs : prefix an unused variable with an underscore by @OccupyMars2025 in #561
- [doc] src/macros.rs : correct grammar errors of an example in lib documentation by @OccupyMars2025 in #562
- Prepare for 0.4.18 release by @KodrAus in #566
New Contributors
- @glandium made their first contribution in #519
- @jiangying000 made their first contribution in #529
- @EriKWDev made their first contribution in #536
- @sashashura made their first contribution in #538
- @a1ecbr0wn made their first contribution in #547
- @djkoloski made their first contribution in #544
- @est31 made their first contribution in #557
- @OccupyMars2025 made their first contribution in #561
Full Changelog: 0.4.17...0.4.18
0.4.17
0.4.15
- Silence a warning about the deprecated
spin_loop_hint
. - Relax ordering in the atomic
set_max_level
call. - Add thumbv4t-none-eabi to targets that don't support atomics
- Allow levels to be iterated over.
- Implement
Log
on some common wrapper types. - Improvements to test coverage.
- Improvements to documentation.
- Add key-value support to the
log!
macros. - Tighten
kv_unstable
internal dependencies so they don't bump past their current alpha. - Add a simple visit API to
kv_unstable
. - Support
NonZero*
integers as values in structured logging - Support static strings as keys in structured logging
0.4.14
0.4.13
0.4.12 (Yanked)
Merge pull request #429 from KodrAus/cargo/0.4.12 Prepare for 0.4.12 release