logforth-filter-rustlog 0.4.0

RUST_LOG directive pattern filter for Logforth.
Documentation
  • Coverage
  • 100%
    13 out of 13 items documented7 out of 11 items with examples
  • Size
  • Source code size: 54.98 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 422.27 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • fast/logforth
    223 28 4
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tisonkun

Logforth RUST_LOG Filter

This filter is derived by env_filter, with significant modifications to suit our needs:

  1. Logforth needs not the original FilterLog struct.
  2. Logforth would use its own Level, LevelFilter, FilterCriteria, and Record types.
  3. The regex based global filter is discarded. Filtering by targets should be sufficient.
  4. Interfaces and methods are refactored to be more ergonomic.