Release notes
*Sourced from [github.com/sirupsen/logrus's releases](https://github.com/sirupsen/logrus/releases).*
> ## v1.4.0
> This new release introduces:
> * Add `DeferExitHandler`, similar to `RegisterExitHandler` but prepending the handler to the list of handlers (semantically like `defer`) ([#848](https://github-redirect.dependabot.com/sirupsen/logrus/issues/848)).
> * Add `CallerPrettyfier` to `JSONFormatter` and `TextFormatter ([#909](https://github-redirect.dependabot.com/sirupsen/logrus/issues/909), [#911](https://github-redirect.dependabot.com/sirupsen/logrus/issues/911))
> * Add `Entry.WithContext()` and `Entry.Context`, to set a context on entries to be used e.g. in hooks ([#919](https://github-redirect.dependabot.com/sirupsen/logrus/issues/919)).
>
> Fixes:
> * Fix wrong method calls `Logger.Print` and `Logger.Warningln` ([#893](https://github-redirect.dependabot.com/sirupsen/logrus/issues/893)).
> * Update `Entry.Logf` to not do string formatting unless the log level is enabled ([#903](https://github-redirect.dependabot.com/sirupsen/logrus/issues/903))
> * Fix infinite recursion on unknown `Level.String()` ([#907](https://github-redirect.dependabot.com/sirupsen/logrus/issues/907))
> * Fix race condition in `getCaller` ([#916](https://github-redirect.dependabot.com/sirupsen/logrus/issues/916)).
Changelog
*Sourced from [github.com/sirupsen/logrus's changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md).*
> # 1.4.0
> This new release introduces:
> * Add `DeferExitHandler`, similar to `RegisterExitHandler` but prepending the handler to the list of handlers (semantically like `defer`) ([#848](https://github-redirect.dependabot.com/sirupsen/logrus/issues/848)).
> * Add `CallerPrettyfier` to `JSONFormatter` and `TextFormatter ([#909](https://github-redirect.dependabot.com/sirupsen/logrus/issues/909), [#911](https://github-redirect.dependabot.com/sirupsen/logrus/issues/911))
> * Add `Entry.WithContext()` and `Entry.Context`, to set a context on entries to be used e.g. in hooks ([#919](https://github-redirect.dependabot.com/sirupsen/logrus/issues/919)).
>
> Fixes:
> * Fix wrong method calls `Logger.Print` and `Logger.Warningln` ([#893](https://github-redirect.dependabot.com/sirupsen/logrus/issues/893)).
> * Update `Entry.Logf` to not do string formatting unless the log level is enabled ([#903](https://github-redirect.dependabot.com/sirupsen/logrus/issues/903))
> * Fix infinite recursion on unknown `Level.String()` ([#907](https://github-redirect.dependabot.com/sirupsen/logrus/issues/907))
> * Fix race condition in `getCaller` ([#916](https://github-redirect.dependabot.com/sirupsen/logrus/issues/916)).
Commits
- [`dae0fa8`](https://github.com/sirupsen/logrus/commit/dae0fa8d5b0c810a8ab733fbd5510c7cae84eca4) Merge pull request [#920](https://github-redirect.dependabot.com/sirupsen/logrus/issues/920) from sirupsen/changelog-v140
- [`02141df`](https://github.com/sirupsen/logrus/commit/02141df9f056e94110db113dbaabe23e8d2adf1f) Add CHANGELOG for v1.4.0
- [`5bd5a31`](https://github.com/sirupsen/logrus/commit/5bd5a315a50f7f5663063a3f608757fdca721f7f) Merge pull request [#919](https://github-redirect.dependabot.com/sirupsen/logrus/issues/919) from tgwizard/entry-context
- [`68e41f6`](https://github.com/sirupsen/logrus/commit/68e41f673a1c0f32433d937ff6665496002f7a85) Add WithContext
- [`131eba2`](https://github.com/sirupsen/logrus/commit/131eba2470034c9aa5a6cc5c9253e4a42822cf2d) Merge pull request [#901](https://github-redirect.dependabot.com/sirupsen/logrus/issues/901) from CodeLingoBot/rewrite
- [`d7b6bf5`](https://github.com/sirupsen/logrus/commit/d7b6bf5e4d26448fd977d07d745a2a66097ddecb) Merge pull request [#916](https://github-redirect.dependabot.com/sirupsen/logrus/issues/916) from sirupsen/fix_race_getcaller
- [`cf1b9fd`](https://github.com/sirupsen/logrus/commit/cf1b9fd15e80ce9ce658546d333f031de2d08331) fix sync.Once usage instead of adding a mutex lock
- [`b9d4514`](https://github.com/sirupsen/logrus/commit/b9d451406decb5cab037cc3a473547e0eb940370) fix ReportCaller race condition
- [`c9b4f5a`](https://github.com/sirupsen/logrus/commit/c9b4f5af6d2e078467a2dfadf23f8d8566f1653e) Merge pull request [#913](https://github-redirect.dependabot.com/sirupsen/logrus/issues/913) from sirupsen/example_caller_prettyfier
- [`99a5172`](https://github.com/sirupsen/logrus/commit/99a5172d62d45e607945ff99722c24a7db95e7a0) Add and example for CallerPrettyfier
- Additional commits viewable in [compare view](https://github.com/sirupsen/logrus/compare/v1.3.0...v1.4.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 squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@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 github.com/sirupsen/logrus from 1.3.0 to 1.4.0.
Release notes
*Sourced from [github.com/sirupsen/logrus's releases](https://github.com/sirupsen/logrus/releases).* > ## v1.4.0 > This new release introduces: > * Add `DeferExitHandler`, similar to `RegisterExitHandler` but prepending the handler to the list of handlers (semantically like `defer`) ([#848](https://github-redirect.dependabot.com/sirupsen/logrus/issues/848)). > * Add `CallerPrettyfier` to `JSONFormatter` and `TextFormatter ([#909](https://github-redirect.dependabot.com/sirupsen/logrus/issues/909), [#911](https://github-redirect.dependabot.com/sirupsen/logrus/issues/911)) > * Add `Entry.WithContext()` and `Entry.Context`, to set a context on entries to be used e.g. in hooks ([#919](https://github-redirect.dependabot.com/sirupsen/logrus/issues/919)). > > Fixes: > * Fix wrong method calls `Logger.Print` and `Logger.Warningln` ([#893](https://github-redirect.dependabot.com/sirupsen/logrus/issues/893)). > * Update `Entry.Logf` to not do string formatting unless the log level is enabled ([#903](https://github-redirect.dependabot.com/sirupsen/logrus/issues/903)) > * Fix infinite recursion on unknown `Level.String()` ([#907](https://github-redirect.dependabot.com/sirupsen/logrus/issues/907)) > * Fix race condition in `getCaller` ([#916](https://github-redirect.dependabot.com/sirupsen/logrus/issues/916)).Changelog
*Sourced from [github.com/sirupsen/logrus's changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md).* > # 1.4.0 > This new release introduces: > * Add `DeferExitHandler`, similar to `RegisterExitHandler` but prepending the handler to the list of handlers (semantically like `defer`) ([#848](https://github-redirect.dependabot.com/sirupsen/logrus/issues/848)). > * Add `CallerPrettyfier` to `JSONFormatter` and `TextFormatter ([#909](https://github-redirect.dependabot.com/sirupsen/logrus/issues/909), [#911](https://github-redirect.dependabot.com/sirupsen/logrus/issues/911)) > * Add `Entry.WithContext()` and `Entry.Context`, to set a context on entries to be used e.g. in hooks ([#919](https://github-redirect.dependabot.com/sirupsen/logrus/issues/919)). > > Fixes: > * Fix wrong method calls `Logger.Print` and `Logger.Warningln` ([#893](https://github-redirect.dependabot.com/sirupsen/logrus/issues/893)). > * Update `Entry.Logf` to not do string formatting unless the log level is enabled ([#903](https://github-redirect.dependabot.com/sirupsen/logrus/issues/903)) > * Fix infinite recursion on unknown `Level.String()` ([#907](https://github-redirect.dependabot.com/sirupsen/logrus/issues/907)) > * Fix race condition in `getCaller` ([#916](https://github-redirect.dependabot.com/sirupsen/logrus/issues/916)).Commits
- [`dae0fa8`](https://github.com/sirupsen/logrus/commit/dae0fa8d5b0c810a8ab733fbd5510c7cae84eca4) Merge pull request [#920](https://github-redirect.dependabot.com/sirupsen/logrus/issues/920) from sirupsen/changelog-v140 - [`02141df`](https://github.com/sirupsen/logrus/commit/02141df9f056e94110db113dbaabe23e8d2adf1f) Add CHANGELOG for v1.4.0 - [`5bd5a31`](https://github.com/sirupsen/logrus/commit/5bd5a315a50f7f5663063a3f608757fdca721f7f) Merge pull request [#919](https://github-redirect.dependabot.com/sirupsen/logrus/issues/919) from tgwizard/entry-context - [`68e41f6`](https://github.com/sirupsen/logrus/commit/68e41f673a1c0f32433d937ff6665496002f7a85) Add WithContext - [`131eba2`](https://github.com/sirupsen/logrus/commit/131eba2470034c9aa5a6cc5c9253e4a42822cf2d) Merge pull request [#901](https://github-redirect.dependabot.com/sirupsen/logrus/issues/901) from CodeLingoBot/rewrite - [`d7b6bf5`](https://github.com/sirupsen/logrus/commit/d7b6bf5e4d26448fd977d07d745a2a66097ddecb) Merge pull request [#916](https://github-redirect.dependabot.com/sirupsen/logrus/issues/916) from sirupsen/fix_race_getcaller - [`cf1b9fd`](https://github.com/sirupsen/logrus/commit/cf1b9fd15e80ce9ce658546d333f031de2d08331) fix sync.Once usage instead of adding a mutex lock - [`b9d4514`](https://github.com/sirupsen/logrus/commit/b9d451406decb5cab037cc3a473547e0eb940370) fix ReportCaller race condition - [`c9b4f5a`](https://github.com/sirupsen/logrus/commit/c9b4f5af6d2e078467a2dfadf23f8d8566f1653e) Merge pull request [#913](https://github-redirect.dependabot.com/sirupsen/logrus/issues/913) from sirupsen/example_caller_prettyfier - [`99a5172`](https://github.com/sirupsen/logrus/commit/99a5172d62d45e607945ff99722c24a7db95e7a0) Add and example for CallerPrettyfier - Additional commits viewable in [compare view](https://github.com/sirupsen/logrus/compare/v1.3.0...v1.4.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 squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@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.