You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New method Record{,Owned}::tid to get the thread ID when the log was generated.
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.