Skip to content

0.5.0-rc.1

Pre-release
Pre-release

Choose a tag to compare

@KodrAus KodrAus released this 07 Dec 06:21

Key changes

  • Support for using custom environment variables to parse the log level filter
  • Added colors and an RFC3339-formatted timestamp to the default format
  • Buffer log output so logs over multiple lines won't end up interleaved in multi-threaded applications
  • Move the filter parsing into its own module so it's easier to consume in custom loggers
  • Documentation!

Breaking changes

  • LogTarget has been renamed to Target
  • LogBuilder has been renamed to Builder
  • The Builder::format method now accepts a F: Fn(&mut Formatter, &Record) -> Result<()> + Sync + Send. This is the new formatting API that writes into a Formatter instead of producing an owned String
  • Builder::init will panic if the logger can't be initialised. A new Builder::try_init method has been added with the same semantics as the old Builder::init method

Contributions

Thanks to everybody who helped make this release of env_logger happen!

New dependencies