Release notes
*Sourced from [env_logger's releases](https://github.com/sebasmagri/env_logger/releases).*
> ## 0.6.0
> # 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 compiling `env_logger` with `default-features=false` will result in a different experience than in `0.5.x`.
>
> # Contributions
>
> - [**hcpl**](https://github.com/hcpl) [Test with `-Z minimal-versions` on CI](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/114)
> - [**afck**](https://github.com/afck) [Add missing RFC3339 URL to fix rustdoc](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/105)
> - [Make all dependencies optional](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/100)
> - [Rework the default format](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/82)
> - [Don't clobber a previously set level filter](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/117)
>
> # 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.
>
> ## 0.5.13
> # Key Changes
>
> - Add a public function for getting the default level style
>
> # Contributions
>
> - [**felixrabe**](https://github.com/felixrabe) [Typo](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/98)
> - [**upsuper**](https://github.com/upsuper) [Move default level style to a public function](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/99)
> - [**Eh2406**](https://github.com/Eh2406) [update some debs for minimal-versions](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/101)
>
> # More Details
>
> ## `Formatter::default_level_style`
>
> The style used in the default format for printing level names can be fetched using the new `default_level_style` method on a `Formatter`. The below example will format just the record message using the style of its level:
>
> ```rust
> builder.format(|buf, record| {
> let level_style = buf.default_level_style(level);
> write!(buf, "{} ", level_style.value(record.args()))
> });
> ```
> ... (truncated)
Commits
- [`ebf4829`](https://github.com/sebasmagri/env_logger/commit/ebf4829f3c04ce9b6d3e5d59fa8770bb71bffca3) Merge pull request [#112](https://github-redirect.dependabot.com/sebasmagri/env_logger/issues/112) from KodrAus/cargo/0.6.0
- [`fa6a7df`](https://github.com/sebasmagri/env_logger/commit/fa6a7df0b3e2a30147088d6b9eb3115e251593e0) Merge pull request [#117](https://github-redirect.dependabot.com/sebasmagri/env_logger/issues/117) from KodrAus/fix/retain-previously-set-max-level
- [`21858cd`](https://github.com/sebasmagri/env_logger/commit/21858cdef591451d8ec112e5d127982d4b07f68f) don't clobber a previously set level filter
- [`c1f2c20`](https://github.com/sebasmagri/env_logger/commit/c1f2c20e51273efe36c6e37f2ecf7c810449628f) Merge pull request [#114](https://github-redirect.dependabot.com/sebasmagri/env_logger/issues/114) from hcpl/minimal-versions
- [`5d2434e`](https://github.com/sebasmagri/env_logger/commit/5d2434e99843db1540a4a1b679abc279daad87b4) Address review suggestions
- [`051d5e9`](https://github.com/sebasmagri/env_logger/commit/051d5e945620123f6a4f582e029a67423bcbff94) Merge pull request [#115](https://github-redirect.dependabot.com/sebasmagri/env_logger/issues/115) from KodrAus/chore/re-usable-filter-builder
- [`0002fdd`](https://github.com/sebasmagri/env_logger/commit/0002fddf893ef8d4bf233fe2616c05d9b65da574) prevent filter::Builder from being reused
- [`6e54a7d`](https://github.com/sebasmagri/env_logger/commit/6e54a7dc0b4cd66bcb95db4dbddc4d705dd168c2) Test with `-Z minimal-versions` on CI
- [`1be278d`](https://github.com/sebasmagri/env_logger/commit/1be278d971352e085ea84fe125581f99e7a3bd65) prepare for 0.6.0 release
- [`299713a`](https://github.com/sebasmagri/env_logger/commit/299713a30d3ab4beb379c9c70f79cb755ce52a05) Merge pull request [#111](https://github-redirect.dependabot.com/sebasmagri/env_logger/issues/111) from KodrAus/chore/docs
- Additional commits viewable in [compare view](https://github.com/sebasmagri/env_logger/compare/v0.5.12...v0.6.0)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
Bumps env_logger from 0.5.12 to 0.6.0.
Release notes
*Sourced from [env_logger's releases](https://github.com/sebasmagri/env_logger/releases).* > ## 0.6.0 > # 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 compiling `env_logger` with `default-features=false` will result in a different experience than in `0.5.x`. > > # Contributions > > - [**hcpl**](https://github.com/hcpl) [Test with `-Z minimal-versions` on CI](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/114) > - [**afck**](https://github.com/afck) [Add missing RFC3339 URL to fix rustdoc](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/105) > - [Make all dependencies optional](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/100) > - [Rework the default format](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/82) > - [Don't clobber a previously set level filter](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/117) > > # 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. > > ## 0.5.13 > # Key Changes > > - Add a public function for getting the default level style > > # Contributions > > - [**felixrabe**](https://github.com/felixrabe) [Typo](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/98) > - [**upsuper**](https://github.com/upsuper) [Move default level style to a public function](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/99) > - [**Eh2406**](https://github.com/Eh2406) [update some debs for minimal-versions](https://github-redirect.dependabot.com/sebasmagri/env_logger/pull/101) > > # More Details > > ## `Formatter::default_level_style` > > The style used in the default format for printing level names can be fetched using the new `default_level_style` method on a `Formatter`. The below example will format just the record message using the style of its level: > > ```rust > builder.format(|buf, record| { > let level_style = buf.default_level_style(level); > write!(buf, "{} ", level_style.value(record.args())) > }); > ``` > ... (truncated)Commits
- [`ebf4829`](https://github.com/sebasmagri/env_logger/commit/ebf4829f3c04ce9b6d3e5d59fa8770bb71bffca3) Merge pull request [#112](https://github-redirect.dependabot.com/sebasmagri/env_logger/issues/112) from KodrAus/cargo/0.6.0 - [`fa6a7df`](https://github.com/sebasmagri/env_logger/commit/fa6a7df0b3e2a30147088d6b9eb3115e251593e0) Merge pull request [#117](https://github-redirect.dependabot.com/sebasmagri/env_logger/issues/117) from KodrAus/fix/retain-previously-set-max-level - [`21858cd`](https://github.com/sebasmagri/env_logger/commit/21858cdef591451d8ec112e5d127982d4b07f68f) don't clobber a previously set level filter - [`c1f2c20`](https://github.com/sebasmagri/env_logger/commit/c1f2c20e51273efe36c6e37f2ecf7c810449628f) Merge pull request [#114](https://github-redirect.dependabot.com/sebasmagri/env_logger/issues/114) from hcpl/minimal-versions - [`5d2434e`](https://github.com/sebasmagri/env_logger/commit/5d2434e99843db1540a4a1b679abc279daad87b4) Address review suggestions - [`051d5e9`](https://github.com/sebasmagri/env_logger/commit/051d5e945620123f6a4f582e029a67423bcbff94) Merge pull request [#115](https://github-redirect.dependabot.com/sebasmagri/env_logger/issues/115) from KodrAus/chore/re-usable-filter-builder - [`0002fdd`](https://github.com/sebasmagri/env_logger/commit/0002fddf893ef8d4bf233fe2616c05d9b65da574) prevent filter::Builder from being reused - [`6e54a7d`](https://github.com/sebasmagri/env_logger/commit/6e54a7dc0b4cd66bcb95db4dbddc4d705dd168c2) Test with `-Z minimal-versions` on CI - [`1be278d`](https://github.com/sebasmagri/env_logger/commit/1be278d971352e085ea84fe125581f99e7a3bd65) prepare for 0.6.0 release - [`299713a`](https://github.com/sebasmagri/env_logger/commit/299713a30d3ab4beb379c9c70f79cb755ce52a05) Merge pull request [#111](https://github-redirect.dependabot.com/sebasmagri/env_logger/issues/111) from KodrAus/chore/docs - Additional commits viewable in [compare view](https://github.com/sebasmagri/env_logger/compare/v0.5.12...v0.6.0)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.