Skip to content

Releases: SpriteOvO/spdlog-rs

v0.4.0

07 Oct 22:46
Compare
Choose a tag to compare

Highlights / New Features

Improvements / Bug Fixes

  • MSRV (minimum supported Rust version) is bumped to v1.60.
  • Fixed AsyncPoolSink may lose the last logs and may panic. (PR #66)
  • Fallback logger name to the target from log crate if present. (PR #50, thank @Lancern)
  • Respect local timezone when rotating files by time point.
  • Several internal performance optimizations.

Breaking Changes

  • Formatter::clone_box is removed, now it requires all formatters to implement Clone. The inherited DynClone trait enables it to be cloned object-safely.
  • FmtExtraInfo{,Builder} has been replaced with FormatterContext, and Formatter::format now has a &mut FormatterContext argument instead of returning Result<FmtExtraInfo>.
  • All re-exported log items has been moved from module log_crate to re_export::log.
  • Method LevelFilter::compare is renamed to LevelFilter::test. The old method is still available, but has been marked as #[deprecated] and may be removed in a future release.
  • Box the RecordOwned in struct SendToChannelErrorDropped to avoid moving large structures on the stack.
  • Implementors of Sink::log are no longer required to call should_log to filter logs. Now spdlog-rs will always check first by calling should_log, and only call log when it returns true.
  • PatternContext now has 2 new lifetimes.

v0.3.13

11 Feb 16:29
Compare
Choose a tag to compare

Changes

  • Fixed a nightly error by checking active even if Condvar times out in PeriodicWorker (issue #60, PR #61)

v0.3.12

11 Oct 09:44
Compare
Choose a tag to compare

Changes

  • Fixed unnecessary rebuild caused by code generation. (issue #40, PR #41)

v0.3.11

06 Sep 14:20
Compare
Choose a tag to compare

Changes

  • Handle conditional compilation for getting TID on iOS. (issue #36, PR #37)

  • Improve testing code.

v0.3.10

13 Jul 03:47
Compare
Choose a tag to compare

Changes

  • Fixed error undefined reference to 'gettid' on environment with earlier glibc versions (before v2.30). (issue #31, PR #32)

  • Replaced pthread_self with pthread_threadid_np for getting TID on macOS. (PR #33)

v0.3.9

07 Jul 16:27
Compare
Choose a tag to compare

Changes

  • Fix {tid} incorrectly outputting TID of thread pool in AsyncPoolSink. (issue #28, PR #29)
  • Bump dependency spin to v0.9.8 for RUSTSEC-2023-0031. (thanks @Dylan-DPC, #27)
  • Bump dependency log to v0.4.8 as earlier versions cannot be compiled.

v0.3.8

22 Dec 18:43
Compare
Choose a tag to compare

Changes

  • Retain source location from log crate if they are &'static. (issue #22, PR #23)

v0.3.6

20 Dec 09:54
Compare
Choose a tag to compare

Changes

v0.3.3

18 Nov 18:21
Compare
Choose a tag to compare

Changes

  • Fix the import error of winapi::um::handleapi on Windows.

v0.3.2

08 Nov 14:28
Compare
Choose a tag to compare

Changes

  • Fix benchmarks URL in README on crates.io.