Key Changes
- Set a policy for changes to the default format
- Make all dependencies besides
log
optional (but enabled by default)
Breaking Changes
- The default format is not considered stable across patch versions. The best way to get a stable format for later ripgrepping is to define a custom one.
- All dependencies have been made optional except for
log
. That means compilingenv_logger
withdefault-features=false
will result in a different experience than in0.5.x
.
Contributions
- @hcpl Test with
-Z minimal-versions
on CI - @afck Add missing RFC3339 URL to fix rustdoc
- Make all dependencies optional
- Rework the default format
- Don't clobber a previously set level filter
More Details
Disabling dependencies
Using default-features=false
will disable all dependencies of env_logger
besides log
. This will reduce compile times and alter the default format by disabling colours and timestamps.
Disabling default dependencies is the recommended way to use env_logger
for libraries that only need it for logging in tests.