Skip to content

v0.5.2

Latest

Choose a tag to compare

@SpriteOvO SpriteOvO released this 19 Dec 22:36
· 12 commits to main since this release

Changelog

  • Fix kv argument in logging macros not accepting references. Values are now constructed using ValueBag::from instead of ValueBag::capture. (PR #109)
  • Introduce AtomicLevelFilter to replace atomic::Atomic<LevelFilter>, which has undefined behavior. (PR #110)
  • Flush sinks on program exit with a special method Sink::flush_on_exit. (PR #102, thanks @tisonkun)
  • Add a builder for FullFormatter that allows configuring the presence of each field. (PRs #108 #114)
  • Allow StdStreamSink to write to stdout and stderr via print macros. It is useful if you want the logs to be captured by cargo test and cargo bench. (PR #106, issue #105)
  • Allow setting up filter for records from log crate via LogCrateProxy::set_filter method. (PR #111)
  • Add a shorthand method build_arc to all sink builder structs. (PR #107)
  • Add a public Level::count method.
  • Deprecate AsyncPoolSinkBuilder::formatter method. AsyncPoolSink does not have its own formatter, this method has no effect and was added by accident.
  • Add justfile to repository.
  • Bump MSRV to 1.71.
  • Documentation improvements:
    • Builder methods documentation now describes their default values.
    • Default values for SinkProp::default are now documented.
    • Update documentation of StringBuf.
    • Enable Rustdoc examples scraping on docs.rs.