0.5.0-rc.1
Pre-release
Pre-release
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
LogTargethas been renamed toTargetLogBuilderhas been renamed toBuilder- The
Builder::formatmethod now accepts aF: Fn(&mut Formatter, &Record) -> Result<()> + Sync + Send. This is the new formatting API that writes into aFormatterinstead of producing an ownedString Builder::initwill panic if the logger can't be initialised. A newBuilder::try_initmethod has been added with the same semantics as the oldBuilder::initmethod
Contributions
- @KodrAus Make the timestamp format more compact
- @mjkillough Allow custom timestamp formats.
- @KodrAus Add rfc3339 timestamps to default format
- @KodrAus Support colors and buffer writes
- @KodrAus Make filtering public
- @FuGangqiang fix doc and reformat code style
- @KodrAus Add examples for custom format and logger impls
- @sfackler Fix std feature name
- @jimmycuadra Adds a new constructor and init functions for custom env vars.
- @jimmycuadra Update to the latest commit of
log/ deny debug impls, missing docs, and warnings. - @jethrogb Enable use of Logger as a filter
Thanks to everybody who helped make this release of env_logger happen!