Skip to content

v0.4.0

Latest
Compare
Choose a tag to compare
@SpriteOvO SpriteOvO released this 07 Oct 22:46
· 7 commits to main since this release

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.