Debian Codegraph @

debian/missing-sources/log/CHANGELOG.md

raw symbols SCIP
1 # Change Log
2
3 ## [Unreleased]
4
5 ## [0.4.29] - 2025-12-02
6
7 ## What's Changed
8 * perf: reduce llvm-lines of FromStr for `Level` and `LevelFilter` by @dishmaker in https://github.com/rust-lang/log/pull/709
9 * Replace serde with serde_core by @Thomasdezeeuw in https://github.com/rust-lang/log/pull/712
10
11 ## New Contributors
12 * @AldaronLau made their first contribution in https://github.com/rust-lang/log/pull/703
13 * @dishmaker made their first contribution in https://github.com/rust-lang/log/pull/709
14
15 **Full Changelog**: https://github.com/rust-lang/log/compare/0.4.28...0.4.29
16
17 ## [0.4.28] - 2025-09-02
18
19 ## What's Changed
20 * ci: drop really old trick and ensure MSRV for all feature combo by @tisonkun in https://github.com/rust-lang/log/pull/676
21 * Chore: delete compare_exchange method for AtomicUsize on platforms without atomics by @HaoliangXu in https://github.com/rust-lang/log/pull/690
22 * Add `increment_severity()` and `decrement_severity()` methods for `Level` and `LevelFilter` by @nebkor in https://github.com/rust-lang/log/pull/692
23
24 ## New Contributors
25 * @xixishidibei made their first contribution in https://github.com/rust-lang/log/pull/677
26 * @ZylosLumen made their first contribution in https://github.com/rust-lang/log/pull/688
27 * @HaoliangXu made their first contribution in https://github.com/rust-lang/log/pull/690
28 * @nebkor made their first contribution in https://github.com/rust-lang/log/pull/692
29
30 **Full Changelog**: https://github.com/rust-lang/log/compare/0.4.27...0.4.28
31
32 ### Notable Changes
33 * MSRV is bumped to 1.61.0 in https://github.com/rust-lang/log/pull/676
34
35 ## [0.4.27] - 2025-03-24
36
37 ### What's Changed
38 * A few minor lint fixes by @nyurik in https://github.com/rust-lang/log/pull/671
39 * Enable clippy support for format-like macros by @nyurik in https://github.com/rust-lang/log/pull/665
40 * Add an optional logger param by @tisonkun in https://github.com/rust-lang/log/pull/664
41 * Pass global logger by value, supplied logger by ref by @KodrAus in https://github.com/rust-lang/log/pull/673
42
43
44 **Full Changelog**: https://github.com/rust-lang/log/compare/0.4.26...0.4.27
45
46
47 ## [0.4.26] - 2025-02-18
48
49 ### What's Changed
50 * Derive `Clone` for `kv::Value` by @SpriteOvO in https://github.com/rust-lang/log/pull/668
51 * Add `spdlog-rs` link to crate doc by @SpriteOvO in https://github.com/rust-lang/log/pull/669
52
53
54 **Full Changelog**: https://github.com/rust-lang/log/compare/0.4.25...0.4.26
55
56 ## [0.4.25] - 2025-01-14
57
58 ### What's Changed
59 * Revert loosening of kv cargo features by @KodrAus in https://github.com/rust-lang/log/pull/662
60
61
62 **Full Changelog**: https://github.com/rust-lang/log/compare/0.4.24...0.4.25
63
64 ## [0.4.24] - 2025-01-11
65
66 ### What's Changed
67 * Fix up kv feature activation by @KodrAus in https://github.com/rust-lang/log/pull/659
68
69
70 **Full Changelog**: https://github.com/rust-lang/log/compare/0.4.23...0.4.24
71
72 ## [0.4.23] - 2025-01-10 (yanked)
73
74 ### What's Changed
75 * Fix some typos by @Kleinmarb in https://github.com/rust-lang/log/pull/637
76 * Add logforth to implementation by @tisonkun in https://github.com/rust-lang/log/pull/638
77 * Add `spdlog-rs` link to README by @SpriteOvO in https://github.com/rust-lang/log/pull/639
78 * Add correct lifetime to kv::Value::to_borrowed_str by @stevenroose in https://github.com/rust-lang/log/pull/643
79 * docs: Add logforth as an impl by @tisonkun in https://github.com/rust-lang/log/pull/642
80 * Add clang_log implementation by @DDAN-17 in https://github.com/rust-lang/log/pull/646
81 * Bind lifetimes of &str returned from Key by the lifetime of 'k rather than the lifetime of the Key struct by @gbbosak in https://github.com/rust-lang/log/pull/648
82 * Fix up key lifetimes and add method to try get a borrowed key by @KodrAus in https://github.com/rust-lang/log/pull/653
83 * Add Ftail implementation by @tjardoo in https://github.com/rust-lang/log/pull/652
84
85 ### New Contributors
86 * @Kleinmarb made their first contribution in https://github.com/rust-lang/log/pull/637
87 * @tisonkun made their first contribution in https://github.com/rust-lang/log/pull/638
88 * @SpriteOvO made their first contribution in https://github.com/rust-lang/log/pull/639
89 * @stevenroose made their first contribution in https://github.com/rust-lang/log/pull/643
90 * @DDAN-17 made their first contribution in https://github.com/rust-lang/log/pull/646
91 * @gbbosak made their first contribution in https://github.com/rust-lang/log/pull/648
92 * @tjardoo made their first contribution in https://github.com/rust-lang/log/pull/652
93
94 **Full Changelog**: https://github.com/rust-lang/log/compare/0.4.22...0.4.23
95
96 ## [0.4.22] - 2024-06-27
97
98 ### What's Changed
99 * Add some clarifications to the library docs by @KodrAus in https://github.com/rust-lang/log/pull/620
100 * Add links to `colog` crate by @chrivers in https://github.com/rust-lang/log/pull/621
101 * adding line_number test + updating some testing infrastructure by @DIvkov575 in https://github.com/rust-lang/log/pull/619
102 * Clarify the actual set of functions that can race in _racy variants by @KodrAus in https://github.com/rust-lang/log/pull/623
103 * Replace deprecated std::sync::atomic::spin_loop_hint() by @Catamantaloedis in https://github.com/rust-lang/log/pull/625
104 * Check usage of max_level features by @Thomasdezeeuw in https://github.com/rust-lang/log/pull/627
105 * Remove unneeded import by @Thomasdezeeuw in https://github.com/rust-lang/log/pull/628
106 * Loosen orderings for logger initialization in https://github.com/rust-lang/log/pull/632. Originally by @pwoolcoc in https://github.com/rust-lang/log/pull/599
107 * Use Location::caller() for file and line info in https://github.com/rust-lang/log/pull/633. Originally by @Cassy343 in https://github.com/rust-lang/log/pull/520
108
109 ### New Contributors
110 * @chrivers made their first contribution in https://github.com/rust-lang/log/pull/621
111 * @DIvkov575 made their first contribution in https://github.com/rust-lang/log/pull/619
112 * @Catamantaloedis made their first contribution in https://github.com/rust-lang/log/pull/625
113
114 **Full Changelog**: https://github.com/rust-lang/log/compare/0.4.21...0.4.22
115
116 ## [0.4.21] - 2024-02-27
117
118 ### What's Changed
119 * Minor clippy nits by @nyurik in https://github.com/rust-lang/log/pull/578
120 * Simplify Display impl by @nyurik in https://github.com/rust-lang/log/pull/579
121 * Set all crates to 2021 edition by @nyurik in https://github.com/rust-lang/log/pull/580
122 * Various changes based on review by @Thomasdezeeuw in https://github.com/rust-lang/log/pull/583
123 * Fix typo in file_static() method doc by @dimo414 in https://github.com/rust-lang/log/pull/590
124 * Specialize empty key value pairs by @EFanZh in https://github.com/rust-lang/log/pull/576
125 * Fix incorrect lifetime in Value::to_str() by @peterjoel in https://github.com/rust-lang/log/pull/587
126 * Remove some API of the key-value feature by @Thomasdezeeuw in https://github.com/rust-lang/log/pull/585
127 * Add logcontrol-log and log-reload by @swsnr in https://github.com/rust-lang/log/pull/595
128 * Add Serialization section to kv::Value docs by @Thomasdezeeuw in https://github.com/rust-lang/log/pull/593
129 * Rename Value::to_str to to_cow_str by @Thomasdezeeuw in https://github.com/rust-lang/log/pull/592
130 * Clarify documentation and simplify initialization of `STATIC_MAX_LEVEL` by @ptosi in https://github.com/rust-lang/log/pull/594
131 * Update docs to 2021 edition, test by @nyurik in https://github.com/rust-lang/log/pull/577
132 * Add "alterable_logger" link to README.md by @brummer-simon in https://github.com/rust-lang/log/pull/589
133 * Normalize line ending by @EFanZh in https://github.com/rust-lang/log/pull/602
134 * Remove `ok_or` in favor of `Option::ok_or` by @AngelicosPhosphoros in https://github.com/rust-lang/log/pull/607
135 * Use `Acquire` ordering for initialization check by @AngelicosPhosphoros in https://github.com/rust-lang/log/pull/610
136 * Get structured logging API ready for stabilization by @KodrAus in https://github.com/rust-lang/log/pull/613
137
138 ### New Contributors
139 * @nyurik made their first contribution in https://github.com/rust-lang/log/pull/578
140 * @dimo414 made their first contribution in https://github.com/rust-lang/log/pull/590
141 * @peterjoel made their first contribution in https://github.com/rust-lang/log/pull/587
142 * @ptosi made their first contribution in https://github.com/rust-lang/log/pull/594
143 * @brummer-simon made their first contribution in https://github.com/rust-lang/log/pull/589
144 * @AngelicosPhosphoros made their first contribution in https://github.com/rust-lang/log/pull/607
145
146 ## [0.4.20] - 2023-07-11
147
148 * Remove rustversion dev-dependency by @Thomasdezeeuw in https://github.com/rust-lang/log/pull/568
149 * Remove `local_inner_macros` usage by @EFanZh in https://github.com/rust-lang/log/pull/570
150
151 ## [0.4.19] - 2023-06-10
152
153 * Use target_has_atomic instead of the old atomic_cas cfg by @GuillaumeGomez in https://github.com/rust-lang/log/pull/555
154 * Put MSRV into Cargo.toml by @est31 in https://github.com/rust-lang/log/pull/557
155
156 ## [0.4.18] - 2023-05-28
157
158 * fix Markdown links (again) by @hellow554 in https://github.com/rust-lang/log/pull/513
159 * add cargo doc to workflow by @hellow554 in https://github.com/rust-lang/log/pull/515
160 * Apply Clippy lints by @hellow554 in https://github.com/rust-lang/log/pull/516
161 * Replace ad-hoc eq_ignore_ascii_case with slice::eq_ignore_ascii_case by @glandium in https://github.com/rust-lang/log/pull/519
162 * fix up windows targets by @KodrAus in https://github.com/rust-lang/log/pull/528
163 * typo fix by @jiangying000 in https://github.com/rust-lang/log/pull/529
164 * Remove dependency on cfg_if by @EriKWDev in https://github.com/rust-lang/log/pull/536
165 * GitHub Workflows security hardening by @sashashura in https://github.com/rust-lang/log/pull/538
166 * Fix build status badge by @atouchet in https://github.com/rust-lang/log/pull/539
167 * Add call_logger to the documentation by @a1ecbr0wn in https://github.com/rust-lang/log/pull/547
168 * Use stable internals for key-value API by @KodrAus in https://github.com/rust-lang/log/pull/550
169 * Change wording of list of implementations by @Thomasdezeeuw in https://github.com/rust-lang/log/pull/553
170 * Add std-logger to list of implementations by @Thomasdezeeuw in https://github.com/rust-lang/log/pull/554
171 * Add `set_max_level_racy` and gate `set_max_level` by @djkoloski in https://github.com/rust-lang/log/pull/544
172 * [doc] src/lib.rs : prefix an unused variable with an underscore by @OccupyMars2025 in https://github.com/rust-lang/log/pull/561
173 * [doc] src/macros.rs : correct grammar errors of an example in lib documentation by @OccupyMars2025 in https://github.com/rust-lang/log/pull/562
174
175 ## [0.4.17] - 2022-04-29
176
177 * Update `kv_unstable` internal dependencies.
178
179 ## [0.4.16] - 2022-03-22
180
181 * Fix a conflict with unqualified `Option` use in macros.
182
183 ## [0.4.15] - 2022-02-23
184
185 * Silence a warning about the deprecated `spin_loop_hint`.
186 * Relax ordering in the atomic `set_max_level` call.
187 * Add thumbv4t-none-eabi to targets that don't support atomics
188 * Allow levels to be iterated over.
189 * Implement `Log` on some common wrapper types.
190 * Improvements to test coverage.
191 * Improvements to documentation.
192 * Add key-value support to the `log!` macros.
193 * Tighten `kv_unstable` internal dependencies, so they don't bump past their current alpha.
194 * Add a simple visit API to `kv_unstable`.
195 * Support `NonZero*` integers as values in structured logging
196 * Support static strings as keys in structured logging
197
198 ## [0.4.14] - 2021-01-27
199
200 * Remove the `__private_api_log_lit` special case.
201 * Fixed incorrect combination of `kv_unstable` and `std` features causing compile failures.
202 * Remove unstable `Value::to_*` conversions that were incorrectly using `as`.
203 * Rename unstable `Value::to_error` to `Value::to_borrowed_error`.
204
205 ## [0.4.13] - 2021-01-11
206
207 * This is the same as `0.4.11`, except with a `kv_unstable_std` feature added to aid migrating current dependents to `0.4.14` (which was originally going to be `0.4.13` until it was decided to create a patch from `0.4.11` to minimize disruption).
208
209 ## [0.4.12] - 2020-12-24
210
211 ### New
212
213 * Support platforms without atomics by racing instead of failing to compile
214 * Implement `Log` for `Box<T: Log>`
215 * Update `cfg-if` to `1.0`
216 * Internal reworks of the structured logging API. Removed the `Fill` API
217 and added `source::as_map` and `source::as_list` to easily serialize a `Source`
218 as either a map of `{key: value, ..}` or as a list of `[(key, value), ..]`.
219
220 ### Fixed
221
222 * Fixed deserialization of `LevelFilter` to use their `u64` index variants
223
224 ## [0.4.11] - 2020-07-09
225
226 ### New
227
228 * Support coercing structured values into concrete types.
229 * Reference the `win_dbg_logger` in the readme.
230
231 ### Fixed
232
233 * Updates a few deprecated items used internally.
234 * Fixed issues in docs and expands sections.
235 * Show the correct build badge in the readme.
236 * Fix up a possible inference breakage with structured value errors.
237 * Respect formatting flags in structured value formatting.
238
239 ## [0.4.10] - 2019-12-16 (yanked)
240
241 ### Fixed
242
243 * Fixed the `log!` macros, so they work in expression context (this regressed in `0.4.9`, which has been yanked).
244
245 ## [0.4.9] - 2019-12-12 (yanked)
246
247 ### Minimum Supported Rust Version
248
249 This release bumps the minimum compiler version to `1.31.0`. This was mainly needed for `cfg-if`,
250 but between `1.16.0` and `1.31.0` there are a lot of language and library improvements we now
251 take advantage of.
252
253 ### New
254
255 * Unstable support for capturing key-value pairs in a record using the `log!` macros
256
257 ### Improved
258
259 * Better documentation for max level filters.
260 * Internal updates to line up with bumped MSRV
261
262 ## [0.4.8] - 2019-07-28
263
264 ### New
265
266 * Support attempting to get `Record` fields as static strings.
267
268 ## [0.4.7] - 2019-07-06
269
270 ### New
271
272 * Support for embedded environments with thread-unsafe initialization.
273 * Initial unstable support for capturing structured data under the `kv_unstable`
274 feature gate. This new API doesn't affect existing users and may change in future
275 patches (so those changes may not appear in the changelog until it stabilizes).
276
277 ### Improved
278
279 * Docs for using `log` with the 2018 edition.
280 * Error messages for macros missing arguments.
281
282 ## [0.4.6] - 2018-10-27
283
284 ### Improved
285
286 * Support 2018-style macro import for the `log_enabled!` macro.
287
288 ## [0.4.5] - 2018-09-03
289
290 ### Improved
291
292 * Make `log`'s internal helper macros less likely to conflict with user-defined
293 macros.
294
295 ## [0.4.4] - 2018-08-17
296
297 ### Improved
298
299 * Support 2018-style imports of the log macros.
300
301 ## [0.4.3] - 2018-06-29
302
303 ### Improved
304
305 * More code generation improvements.
306
307 ## [0.4.2] - 2018-06-05
308
309 ### Improved
310
311 * Log invocations now generate less code.
312
313 ### Fixed
314
315 * Example Logger implementations now properly set the max log level.
316
317 ## [0.4.1] - 2017-12-30
318
319 ### Fixed
320
321 * Some doc links were fixed.
322
323 ## [0.4.0] - 2017-12-24
324
325 The changes in this release include cleanup of some obscure functionality and a more robust public
326 API designed to support bridges to other logging systems, and provide more flexibility to new
327 features in the future.
328
329 ### Compatibility
330
331 Vast portions of the Rust ecosystem use the 0.3.x release series of log, and we don't want to force
332 the community to go through the pain of upgrading every crate to 0.4.x at the exact same time. Along
333 with 0.4.0, we've published a new 0.3.9 release which acts as a "shim" over 0.4.0. This will allow
334 crates using either version to coexist without losing messages from one side or the other.
335
336 There is one caveat - a log message generated by a crate using 0.4.x but consumed by a logging
337 implementation using 0.3.x will not have a file name or module path. Applications affected by this
338 can upgrade their logging implementations to one using 0.4.x to avoid losing this information. The
339 other direction does not lose any information, fortunately!
340
341 **TL;DR** Libraries should feel comfortable upgrading to 0.4.0 without treating that as a breaking
342 change. Applications may need to update their logging implementation (e.g. env-logger) to a newer
343 version using log 0.4.x to avoid losing module and file information.
344
345 ### New
346
347 * The crate is now `no_std` by default.
348 * `Level` and `LevelFilter` now implement `Serialize` and `Deserialize` when the `serde` feature is
349 enabled.
350 * The `Record` and `Metadata` types can now be constructed by third-party code via a builder API.
351 * The `logger` free function returns a reference to the logger implementation. This, along with the
352 ability to construct `Record`s, makes it possible to bridge from another logging framework to
353 this one without digging into the private internals of the crate. The standard `error!` `warn!`,
354 etc., macros now exclusively use the public API of the crate rather than "secret" internal APIs.
355 * `Log::flush` has been added to allow crates to tell the logging implementation to ensure that all
356 "in flight" log events have been persisted. This can be used, for example, just before an
357 application exits to ensure that asynchronous log sinks finish their work.
358
359 ### Removed
360
361 * The `shutdown` and `shutdown_raw` functions have been removed. Supporting shutdown significantly
362 complicated the implementation and imposed a performance cost on each logging operation.
363 * The `log_panics` function and its associated `nightly` Cargo feature have been removed. Use the
364 [log-panics](https://crates.io/crates/log-panics) instead.
365
366 ### Changed
367
368 * The `Log` prefix has been removed from type names. For example, `LogLevelFilter` is now
369 `LevelFilter`, and `LogRecord` is now `Record`.
370 * The `MaxLogLevelFilter` object has been removed in favor of a `set_max_level` free function.
371 * The `set_logger` free functions have been restructured. The logger is now directly passed to the
372 functions rather than a closure which returns the logger. `set_logger` now takes a `&'static
373 Log` and is usable in `no_std` contexts in place of the old `set_logger_raw`. `set_boxed_logger`
374 is a convenience function which takes a `Box<Log>` but otherwise acts like `set_logger`. It
375 requires the `std` feature.
376 * The `file` and `module_path` values in `Record` no longer have the `'static` lifetime to support
377 integration with other logging frameworks that don't provide a `'static` lifetime for the
378 equivalent values.
379 * The `file`, `line`, and `module_path` values in `Record` are now `Option`s to support integration
380 with other logging frameworks that don't provide those values.
381
382 ### In the Future
383
384 * We're looking to add support for *structured* logging - the inclusion of extra key-value pairs of
385 information in a log event in addition to the normal string message. This should be able to be
386 added in a backwards compatible manner to the 0.4.x series when the design is worked out.
387
388 ## Older
389
390 Look at the [release tags] for information about older releases.
391
392 [Unreleased]: https://github.com/rust-lang-nursery/log/compare/0.4.29...HEAD
393 [0.4.29]: https://github.com/rust-lang/log/compare/0.4.28...0.4.29
394 [0.4.28]: https://github.com/rust-lang/log/compare/0.4.27...0.4.28
395 [0.4.27]: https://github.com/rust-lang/log/compare/0.4.26...0.4.27
396 [0.4.26]: https://github.com/rust-lang/log/compare/0.4.25...0.4.26
397 [0.4.25]: https://github.com/rust-lang/log/compare/0.4.24...0.4.25
398 [0.4.24]: https://github.com/rust-lang/log/compare/0.4.23...0.4.24
399 [0.4.23]: https://github.com/rust-lang/log/compare/0.4.22...0.4.23
400 [0.4.22]: https://github.com/rust-lang/log/compare/0.4.21...0.4.22
401 [0.4.21]: https://github.com/rust-lang/log/compare/0.4.20...0.4.21
402 [0.4.20]: https://github.com/rust-lang-nursery/log/compare/0.4.19...0.4.20
403 [0.4.19]: https://github.com/rust-lang-nursery/log/compare/0.4.18...0.4.19
404 [0.4.18]: https://github.com/rust-lang-nursery/log/compare/0.4.17...0.4.18
405 [0.4.17]: https://github.com/rust-lang-nursery/log/compare/0.4.16...0.4.17
406 [0.4.16]: https://github.com/rust-lang-nursery/log/compare/0.4.15...0.4.16
407 [0.4.15]: https://github.com/rust-lang-nursery/log/compare/0.4.13...0.4.15
408 [0.4.14]: https://github.com/rust-lang-nursery/log/compare/0.4.13...0.4.14
409 [0.4.13]: https://github.com/rust-lang-nursery/log/compare/0.4.11...0.4.13
410 [0.4.12]: https://github.com/rust-lang-nursery/log/compare/0.4.11...0.4.12
411 [0.4.11]: https://github.com/rust-lang-nursery/log/compare/0.4.10...0.4.11
412 [0.4.10]: https://github.com/rust-lang-nursery/log/compare/0.4.9...0.4.10
413 [0.4.9]: https://github.com/rust-lang-nursery/log/compare/0.4.8...0.4.9
414 [0.4.8]: https://github.com/rust-lang-nursery/log/compare/0.4.7...0.4.8
415 [0.4.7]: https://github.com/rust-lang-nursery/log/compare/0.4.6...0.4.7
416 [0.4.6]: https://github.com/rust-lang-nursery/log/compare/0.4.5...0.4.6
417 [0.4.5]: https://github.com/rust-lang-nursery/log/compare/0.4.4...0.4.5
418 [0.4.4]: https://github.com/rust-lang-nursery/log/compare/0.4.3...0.4.4
419 [0.4.3]: https://github.com/rust-lang-nursery/log/compare/0.4.2...0.4.3
420 [0.4.2]: https://github.com/rust-lang-nursery/log/compare/0.4.1...0.4.2
421 [0.4.1]: https://github.com/rust-lang-nursery/log/compare/0.4.0...0.4.1
422 [0.4.0]: https://github.com/rust-lang-nursery/log/compare/0.3.8...0.4.0
423 [release tags]: https://github.com/rust-lang-nursery/log/releases